diff options
author | Andy Schwerin <schwerin@10gen.com> | 2012-12-10 14:06:13 -0500 |
---|---|---|
committer | Andy Schwerin <schwerin@10gen.com> | 2012-12-17 15:45:38 -0500 |
commit | 50f22ef561c08c56b26e8f4e2bef5636180280f4 (patch) | |
tree | 5197751ddc3f091d01c28bc1951b59c92a1e6fac /src/mongo/unittest/unittest.h | |
parent | 385502fd0d6a5aafa5478fb9099c4f26394627cb (diff) | |
download | mongo-50f22ef561c08c56b26e8f4e2bef5636180280f4.tar.gz |
SERVER-7767 Support extended privilege document format in the AuthorizationManager.
Includes unit but not integration tests.
Diffstat (limited to 'src/mongo/unittest/unittest.h')
-rw-r--r-- | src/mongo/unittest/unittest.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/unittest/unittest.h b/src/mongo/unittest/unittest.h index ccfb8dabfc3..2d72a64999c 100644 --- a/src/mongo/unittest/unittest.h +++ b/src/mongo/unittest/unittest.h @@ -54,6 +54,11 @@ #define ASSERT_OK(EXPRESSION) ASSERT_EQUALS(Status::OK(), (EXPRESSION)) /** + * Assert that a status code is anything but OK. + */ +#define ASSERT_NOT_OK(EXPRESSION) ASSERT_NOT_EQUALS(Status::OK(), (EXPRESSION)) + +/** * Fails if "EXPRESSION" is true. */ #define ASSERT_FALSE(EXPRESSION) ::mongo::unittest::TestAssertion( __FILE__, __LINE__ ).failIf( \ |