Преглед изворни кода

Extended tests for File class

- added MAC OS specific preprocessor directive to tests
Patrick пре 4 година
родитељ
комит
3cefb9db4b
1 измењених фајлова са 7 додато и 1 уклоњено
  1. 7 1
      test/cases/io/FileTest.cpp

+ 7 - 1
test/cases/io/FileTest.cpp

@@ -3,7 +3,7 @@
  * Company:         Lynar Studios
  * E-Mail:          webmaster@lynarstudios.com
  * Created:         2020-08-15
- * Changed:         2020-08-15
+ * Changed:         2020-08-16
  *
  * */
 
@@ -58,6 +58,9 @@ namespace {
       #ifdef unix
         ls_std::File executableFile {TestHelper::getResourcesFolderLocation() + "app"};
       #endif
+      #ifdef __APPLE__
+        ls_std::File executableFile {TestHelper::getResourcesFolderLocation() + "app"};
+      #endif
 
     ASSERT_TRUE(executableFile.canExecute());
   }
@@ -124,6 +127,9 @@ namespace {
     #ifdef unix
       ASSERT_EQ(7, file.getSize());
     #endif
+    #ifdef __APPLE__
+      ASSERT_EQ(7, file.getSize());
+    #endif
   }
 
   TEST_F(FileTest, isDirectory)