diff options
author | Leonardo Menti <leonardo.menti@mongodb.com> | 2022-07-08 14:24:30 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-07-12 15:37:57 +0000 |
commit | f3fb3ba01807ef304fb374223095a5fd01126f51 (patch) | |
tree | 2fb0aad54ecf4662a7197466dbfeeacf2d6762d9 /src/mongo/db/pipeline/expression_context_test.cpp | |
parent | 131c84d87f754210993c334b4825c69f042ee776 (diff) | |
download | mongo-f3fb3ba01807ef304fb374223095a5fd01126f51.tar.gz |
SERVER-66760 Add ASSERT_DOES_NOT_THROW to unittest assertions
Diffstat (limited to 'src/mongo/db/pipeline/expression_context_test.cpp')
-rw-r--r-- | src/mongo/db/pipeline/expression_context_test.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/mongo/db/pipeline/expression_context_test.cpp b/src/mongo/db/pipeline/expression_context_test.cpp index b105dce531b..2ff0ef20b1e 100644 --- a/src/mongo/db/pipeline/expression_context_test.cpp +++ b/src/mongo/db/pipeline/expression_context_test.cpp @@ -39,15 +39,6 @@ #include "mongo/db/vector_clock_mutable.h" #include "mongo/unittest/unittest.h" -#define ASSERT_DOES_NOT_THROW(EXPRESSION) \ - try { \ - EXPRESSION; \ - } catch (const AssertionException& e) { \ - str::stream err; \ - err << "Threw an exception incorrectly: " << e.toString(); \ - ::mongo::unittest::TestAssertionFailure(__FILE__, __LINE__, err).stream(); \ - } - namespace mongo { namespace { |