Parcourir la 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 il y a 13 ans
Parent
commit
779e145d8f
1 fichiers modifiés avec 3 ajouts et 1 suppressions
  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);
 }