mirror of
https://github.com/ceph/ceph
synced 2025-03-11 02:39:05 +00:00
Merge pull request #4572 from ceph/wip-11540
test_libcephfs: Fix zero length read tests Reviewed-by: John Spray <john.spray@redhat.com>
This commit is contained in:
commit
e8aff1c3ae
@ -897,7 +897,7 @@ TEST(LibCephFS, BadArgument) {
|
||||
ASSERT_GT(fd, 0);
|
||||
char buf[100];
|
||||
ASSERT_EQ(ceph_write(cmount, fd, buf, sizeof(buf), 0), (int)sizeof(buf));
|
||||
ASSERT_EQ(ceph_read(cmount, fd, buf, 5, 0), 0);
|
||||
ASSERT_EQ(ceph_read(cmount, fd, buf, 0, 5), 0);
|
||||
ceph_close(cmount, fd);
|
||||
ASSERT_EQ(ceph_unlink(cmount, "test_file"), 0);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user