projects
/
folly.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
CodeMod: Prefer ADD_FAILURE() over EXPECT_TRUE(false), et cetera
[folly.git]
/
folly
/
io
/
test
/
IOBufCursorTest.cpp
diff --git
a/folly/io/test/IOBufCursorTest.cpp
b/folly/io/test/IOBufCursorTest.cpp
index 22c2a76d91013b5ed8d74e9d2251749e2351cd05..60ac46aeb076a45d10d55686e07516dad2d159e1 100644
(file)
--- a/
folly/io/test/IOBufCursorTest.cpp
+++ b/
folly/io/test/IOBufCursorTest.cpp
@@
-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 (...) {
}
}