]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
test: remove improper casts from SetSize test
authorJeff Layton <jlayton@redhat.com>
Wed, 7 Dec 2016 16:52:58 +0000 (11:52 -0500)
committerJeff Layton <jlayton@redhat.com>
Wed, 7 Dec 2016 17:09:09 +0000 (12:09 -0500)
Signed-off-by: Jeff Layton <jlayton@redhat.com>
src/test/libcephfs/test.cc

index e8eaef4ba5279785b28088e70cc31f2644cba8bb..6052fe1245739a3f5ec5222dddaca18cd1116343 100644 (file)
@@ -1694,10 +1694,10 @@ TEST(LibCephFS, SetSize) {
 
   struct ceph_statx stx;
   uint64_t size = 8388608;
-  stx.stx_size = (off_t)size;
+  stx.stx_size = size;
   ASSERT_EQ(ceph_fsetattrx(cmount, fd, &stx, CEPH_SETATTR_SIZE), 0);
   ASSERT_EQ(ceph_fstatx(cmount, fd, &stx, CEPH_STATX_SIZE, 0), 0);
-  ASSERT_EQ(stx.stx_size, (off_t)size);
+  ASSERT_EQ(stx.stx_size, size);
 
   ceph_close(cmount, fd);
   ceph_shutdown(cmount);