]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librados: fix test warning on 32-bit platforms
authorSage Weil <sage@inktank.com>
Mon, 1 Jul 2013 21:30:03 +0000 (14:30 -0700)
committerSage Weil <sage@inktank.com>
Mon, 1 Jul 2013 21:30:03 +0000 (14:30 -0700)
Signed-off-by: Sage Weil <sage@inktank.com>
src/test/librados/misc.cc

index c4bc465fa4a0c01e19b90caab9eb81a072ea9eae..793b6f5b79248b9d0e30ae0724e2dc72f616126e 100644 (file)
@@ -396,7 +396,11 @@ TEST(LibRadosMisc, BigObjectPP) {
     o.zero(500000000000ull, 500000000000ull);
     ASSERT_EQ(-EFBIG, ioctx.operate("foo", &o));
   }
+
+#ifdef __LP64__
+  // this test only works on 64-bit platforms
   ASSERT_EQ(-EFBIG, ioctx.write("foo", bl, 500000000000ull, bl.length()));
+#endif
 
   ioctx.close();
   ASSERT_EQ(0, destroy_one_pool_pp(pool_name, cluster));