Переглянути джерело

CXXTEST doesn't use the preprocessor, or doesn't see preprocessor guards. Currently all optional feature tests (i.e. VTK) are disabled and will be moved to their own test suite in the future.

enhancement_3
Trevor Irons 7 роки тому
джерело
коміт
181c8acbe3
1 змінених файлів з 8 додано та 7 видалено
  1. 8
    7
      LemmaCore/testing/GetNameCheck.h

+ 8
- 7
LemmaCore/testing/GetNameCheck.h Переглянути файл

50
         TS_ASSERT_EQUALS( Obj->GetName(), std::string("RectilinearGridReader") );
50
         TS_ASSERT_EQUALS( Obj->GetName(), std::string("RectilinearGridReader") );
51
     }
51
     }
52
 
52
 
53
-#ifdef LEMMAUSEVTK
54
-    void testRectilinearGridVTKExporter( void )
55
-    {
56
-        auto Obj = RectilinearGridVTKExporter::NewSP();
57
-        TS_ASSERT_EQUALS( Obj->GetName(), std::string("RectilinearGridVTKExporter") );
58
-    }
59
-#endif
53
+// INCLUDE GUARDS DON'T WORK WITH CXXTEST, NEED TO MOVE VTK TESTS OUT
54
+// #ifdef LEMMAUSEVTK
55
+//     void testRectilinearGridVTKExporter( void )
56
+//     {
57
+//         auto Obj = RectilinearGridVTKExporter::NewSP();
58
+//         TS_ASSERT_EQUALS( Obj->GetName(), std::string("RectilinearGridVTKExporter") );
59
+//     }
60
+// #endif
60
 
61
 
61
     void testWindowFilter( void )
62
     void testWindowFilter( void )
62
     {
63
     {

Завантаження…
Відмінити
Зберегти