Browse 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 12 years ago
parent
commit
0684f354d8
1 changed files with 2 additions and 1 deletions
  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",