CodeMod: Prefer ADD_FAILURE() over EXPECT_TRUE(false), et cetera
[folly.git] / folly / test / RangeTest.cpp
index a3898856a99fc99fe332158022646dd85e1d4f7c..8070b80110b6eb192075d639527359e897c14780 100644 (file)
@@ -1009,7 +1009,7 @@ void createProtectedBuf(StringPiece& contents, char** buf) {
   const size_t kSuccess = 0;
   char* pageAlignedBuf = (char*)aligned_malloc(2 * kPageSize, kPageSize);
   if (pageAlignedBuf == nullptr) {
-    ASSERT_FALSE(true);
+    FAIL();
   }
   // Protect the page after the first full page-aligned region of the
   // malloc'ed buffer