Because E2BIG does not allow selection
./ceph_test_rados_api_aio --gtest_filter=LibRadosAio.E2BIG
Running main() from gtest_main.cc
Note: Google Test filter = LibRadosAio.E2BIG
[==========] Running 0 tests from 0 test cases.
[==========] 0 tests from 0 test cases ran. (0 ms total)
[ PASSED ] 0 tests.
probably because it contains a number.
Signed-off-by: Loic Dachary <loic-201408@dachary.org>
ASSERT_EQ(0, rados_write(ioctx, "foo", buf, sizeof(buf), 0));
}
-TEST_F(LibRadosIo, E2BIG) {
+TEST_F(LibRadosIo, TooBig) {
char buf[1];
ASSERT_EQ(-E2BIG, rados_write(ioctx, "A", buf, UINT_MAX, 0));
ASSERT_EQ(-E2BIG, rados_append(ioctx, "A", buf, UINT_MAX));