diff options
Diffstat (limited to 'tests/gem_readwrite.c')
-rw-r--r-- | tests/gem_readwrite.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gem_readwrite.c b/tests/gem_readwrite.c index 4f5cde6c..07dc853a 100644 --- a/tests/gem_readwrite.c +++ b/tests/gem_readwrite.c @@ -127,11 +127,11 @@ int main(int argc, char **argv) printf("Testing read of bad buffer handle\n"); ret = do_read(fd, 1234, buf, 0, 1024); - assert(ret == -1 && errno == EBADF); + assert(ret == -1 && errno == ENOENT); printf("Testing write of bad buffer handle\n"); ret = do_write(fd, 1234, buf, 0, 1024); - assert(ret == -1 && errno == EBADF); + assert(ret == -1 && errno == ENOENT); close(fd); |