Browse Source

Fixed filesystem_test for MSYS2

pipelines/353213535
eidheim 4 years ago
parent
commit
8bf8148c63
  1. 6
      tests/filesystem_test.cpp

6
tests/filesystem_test.cpp

@ -18,13 +18,15 @@ int main() {
{ {
auto paths = filesystem::get_executable_search_paths(); auto paths = filesystem::get_executable_search_paths();
g_assert(!paths.empty()); g_assert(!paths.empty());
size_t count = 0;
for(auto &path : paths) { for(auto &path : paths) {
g_assert(!path.empty()); g_assert(!path.empty());
if(path.string() != "C:\\msys64\\usr\\local\\bin") { // Workaround for MSYS2 if(boost::filesystem::exists(path)) {
g_assert(boost::filesystem::exists(path));
g_assert(boost::filesystem::is_directory(path)); g_assert(boost::filesystem::is_directory(path));
++count;
} }
} }
g_assert(count > 0);
} }
{ {

Loading…
Cancel
Save