CodeMod: Prefer ADD_FAILURE() over EXPECT_TRUE(false), et cetera
[folly.git] / folly / io / test / IOBufCursorTest.cpp
index 22c2a76d91013b5ed8d74e9d2251749e2351cd05..60ac46aeb076a45d10d55686e07516dad2d159e1 100644 (file)
@@ -142,7 +142,7 @@ TEST(IOBuf, Cursor) {
   c.write((uint8_t)40); // OK
   try {
     c.write((uint8_t)10); // Bad write, checked should except.
-    EXPECT_TRUE(false);
+    ADD_FAILURE();
   } catch (...) {
   }
 }