Parcourir la source

[2046] Fix compilation of tests on Solaris

It considers NULL to be int and gets confused when instantiating
templates of the GTEST library.
Michal 'vorner' Vaner il y a 12 ans
Parent
commit
0684f354d8
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. 2 1
      src/lib/datasrc/tests/client_list_unittest.cc

+ 2 - 1
src/lib/datasrc/tests/client_list_unittest.cc

@@ -735,7 +735,8 @@ TEST_F(ListTest, masterFiles) {
     list_->configure(*elem, true);
 
     // It has only the cache
-    EXPECT_EQ(NULL, list_->getDataSources()[0].data_src_client_);
+    EXPECT_EQ(static_cast<const DataSourceClient*>(NULL),
+              list_->getDataSources()[0].data_src_client_);
 
     // And it can search
     positiveResult(list_->find(Name(".")), ds_[0], Name("."), true, "com",