Browse Source

Disable a test conditionally

As the AuthSrvTest.postReconfigure needs shared memory.
Michal 'vorner' Vaner 11 years ago
parent
commit
4bca9c538b
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/bin/auth/tests/auth_srv_unittest.cc

+ 4 - 0
src/bin/auth/tests/auth_srv_unittest.cc

@@ -2144,7 +2144,11 @@ TEST_F(AuthSrvTest, loadZoneCommand) {
 
 
 // Test that the auth server subscribes to the segment readers group when
 // Test that the auth server subscribes to the segment readers group when
 // there's a remotely mapped segment.
 // there's a remotely mapped segment.
+#ifdef USE_SHARED_MEMORY
 TEST_F(AuthSrvTest, postReconfigure) {
 TEST_F(AuthSrvTest, postReconfigure) {
+#else
+TEST_F(AuthSrvTest, DISABLED_postReconfigure) {
+#endif
     FakeSession session(ElementPtr(new ListElement),
     FakeSession session(ElementPtr(new ListElement),
                         ElementPtr(new ListElement),
                         ElementPtr(new ListElement),
                         ElementPtr(new ListElement));
                         ElementPtr(new ListElement));