Automatic cleanup of global macros in client headers. SERVER-1042

This commit is contained in:
Mathias Stearn
2010-04-23 17:52:10 -04:00
parent b51ccb0204
commit 2f197d5192
12 changed files with 223 additions and 82 deletions

View File

@@ -20,9 +20,6 @@
#include "../client/dbclient.h"
#include "dbtests.h"
#include "../db/concurrency.h"
// must be last
#include "../client/cleanup.h"
namespace ClientTests {
@@ -157,16 +154,6 @@ namespace ClientTests {
}
};
class HiddenMacros{
public:
void run(){
ASSERT_EQUALS(&malloc, &std::malloc);
#ifdef assert
ASSERT(!"assert macro still defined");
#endif
}
};
class All : public Suite {
public:
All() : Suite( "client" ){
@@ -179,7 +166,6 @@ namespace ClientTests {
add<CS_10>();
add<PushBack>();
add<Create>();
add<HiddenMacros>();
}
} all;