소스 검색

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;
     }