diff options
author | Andrew Morrow <acm@10gen.com> | 2013-04-29 21:09:19 -0400 |
---|---|---|
committer | Andrew Morrow <acm@10gen.com> | 2013-05-02 18:59:12 -0400 |
commit | 5c559ec6797fc3e4508acaea8ca3b28f4e37bd3c (patch) | |
tree | 252d264272b36aeddd00fad2227f8bc6b55134be /src/mongo/unittest/unittest.h | |
parent | e801393010fa3c432451ef5173b3347fa6c3bf1b (diff) | |
download | mongo-5c559ec6797fc3e4508acaea8ca3b28f4e37bd3c.tar.gz |
Mark unit test fail as noreturn to help static analysis tools
Diffstat (limited to 'src/mongo/unittest/unittest.h')
-rw-r--r-- | src/mongo/unittest/unittest.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/unittest/unittest.h b/src/mongo/unittest/unittest.h index 5427e84dc77..f96a2c31a57 100644 --- a/src/mongo/unittest/unittest.h +++ b/src/mongo/unittest/unittest.h @@ -351,7 +351,7 @@ namespace mongo { TestAssertion( const std::string& file, unsigned line ); ~TestAssertion(); - void fail( const std::string& message) const; + MONGO_COMPILER_NORETURN void fail( const std::string& message) const; void failIf( bool flag, const std::string &message ) const { if ( flag ) fail( message ); } |