Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
cbielow committed Jun 5, 2024
1 parent 98a1240 commit c4157b8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tests/class_tests/openms/source/File_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,9 @@ START_SECTION(static bool makeDir(const String& dir_name))
TEST_TRUE(File::makeDir("subdir/333"))
TEST_TRUE(File::isDirectory("./subdir/333/"))
// try create something which should be forbidden
TEST_FALSE(File::makeDir("c:\\te:st")) // ':' is not allowed in path on Windows and 'c:\\' is not allowed on Unix
#if defined(OPENMS_WINDOWSPLATFORM)
TEST_FALSE(File::makeDir("c:\\te:st")) // ':' is not allowed in path on Windows; Unix pretty much allows everything
#endif
std::filesystem::current_path(current_path); // reset current path (enable deletion of dirname)
END_SECTION

Expand Down

0 comments on commit c4157b8

Please sign in to comment.