瀏覽代碼

Update test to reflect current behavior of database/cache

Steve Pieper 12 年之前
父節點
當前提交
1cb9b0e080
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      Libs/DICOM/Core/Testing/Cpp/ctkDICOMDatabaseTest2.cpp

+ 2 - 2
Libs/DICOM/Core/Testing/Cpp/ctkDICOMDatabaseTest2.cpp

@@ -136,9 +136,9 @@ int ctkDICOMDatabaseTest2( int argc, char * argv [] )
   // Test the tag cache
   //
 
-  if (database.tagCacheExists())
+  if (!database.tagCacheExists())
     {
-    std::cerr << "ctkDICOMDatabase: tag cache should not exist in fresh database" << std::endl;
+    std::cerr << "ctkDICOMDatabase: tag cache should be configured when database opens" << std::endl;
     return EXIT_FAILURE;
     }