diff options
author | ADAM David Alan Martin <adam@recursive.engineer> | 2018-11-08 11:08:57 -0800 |
---|---|---|
committer | ADAM David Alan Martin <adam@recursive.engineer> | 2018-11-08 12:11:51 -0800 |
commit | 77ea0900b59de5f49953d4e1c2f0be4532e448c4 (patch) | |
tree | 717daddb2112c7945f5ce9a4ddba6edc1e64723d /src/mongo/db/fts | |
parent | b58420e57a2149c350ebf82815fe708850402296 (diff) | |
download | mongo-77ea0900b59de5f49953d4e1c2f0be4532e448c4.tar.gz |
SERVER-37909 Fix GCC-8 in some tests.
GCC-8 doesn't treat `_Pragma(...)` ignore directives in
macros the way that Clang does. Instead of this technique, we'll
make the requirement on `ASSERT_THROWS`' parameter an expression,
not a statement.
Diffstat (limited to 'src/mongo/db/fts')
-rw-r--r-- | src/mongo/db/fts/unicode/string_test.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mongo/db/fts/unicode/string_test.cpp b/src/mongo/db/fts/unicode/string_test.cpp index 47404fa491b..7e8e3db61f1 100644 --- a/src/mongo/db/fts/unicode/string_test.cpp +++ b/src/mongo/db/fts/unicode/string_test.cpp @@ -218,10 +218,10 @@ TEST(UnicodeString, BadUTF8) { static_cast<char>(0x64), 0}; - ASSERT_THROWS(String test1(invalid1), AssertionException); - ASSERT_THROWS(String test2(invalid2), AssertionException); - ASSERT_THROWS(String test3(invalid3), AssertionException); - ASSERT_THROWS(String test4(invalid4), AssertionException); + ASSERT_THROWS(String(invalid1), AssertionException); + ASSERT_THROWS(String(invalid2), AssertionException); + ASSERT_THROWS(String(invalid3), AssertionException); + ASSERT_THROWS(String(invalid4), AssertionException); StackBufBuilder buf; |