aboutsummaryrefslogtreecommitdiff
path: root/test/unit-tests.c
diff options
context:
space:
mode:
authorJohn Levon <john.levon@nutanix.com>2021-03-24 17:41:11 +0000
committerGitHub <noreply@github.com>2021-03-24 17:41:11 +0000
commit4f4c378978f0e22ec5b803496e2971adca6a3f8f (patch)
tree5f01e1ff807c1b57efe96332cf6be4e0abd285f7 /test/unit-tests.c
parent0c27dacfd1cf94609a8b07ece157ed83240915e0 (diff)
downloadlibvfio-user-4f4c378978f0e22ec5b803496e2971adca6a3f8f.zip
libvfio-user-4f4c378978f0e22ec5b803496e2971adca6a3f8f.tar.gz
libvfio-user-4f4c378978f0e22ec5b803496e2971adca6a3f8f.tar.bz2
_dma_addr_sg_split(): set errno when not found (#402)
Signed-off-by: John Levon <john.levon@nutanix.com> Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'test/unit-tests.c')
-rw-r--r--test/unit-tests.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/unit-tests.c b/test/unit-tests.c
index 4d07c64..e773ead 100644
--- a/test/unit-tests.c
+++ b/test/unit-tests.c
@@ -1265,7 +1265,7 @@ test_dma_addr_to_sg(void **state UNUSED)
r->prot = PROT_WRITE;
assert_int_equal(-1,
dma_addr_to_sg(dma, 0x6000, 0x400, &sg, 1, PROT_READ));
- assert_int_equal(0, errno);
+ assert_int_equal(ENOENT, errno);
r->prot = PROT_READ;
assert_int_equal(-1,