Browse Source

[master] fix solaris issue

This patch from yesterday either disappear or never made it, anyway, recommiting jinmei's code (reviewed on jabber by, er, me)
Jelte Jansen 13 years ago
parent
commit
779e145d8f
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/lib/datasrc/tests/database_unittest.cc

+ 3 - 1
src/lib/datasrc/tests/database_unittest.cc

@@ -319,7 +319,9 @@ TEST_F(DatabaseClientTest, superZone) {
 }
 
 TEST_F(DatabaseClientTest, noAccessorException) {
-    EXPECT_THROW(DatabaseClient(shared_ptr<DatabaseAccessor>()),
+    // We need a dummy variable here; some compiler would regard it a mere
+    // declaration instead of an instantiation and make the test fail.
+    EXPECT_THROW(DatabaseClient dummy((shared_ptr<DatabaseAccessor>())),
                  isc::InvalidParameter);
 }