Skip to content

Commit

Permalink
For fucks sake
Browse files Browse the repository at this point in the history
  • Loading branch information
LunarWatcher committed Jun 18, 2020
1 parent b1e060c commit 1b59c08
Showing 1 changed file with 11 additions and 12 deletions.
23 changes: 11 additions & 12 deletions tests/testSources/runner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,19 @@
// files, and it handles the rest of the clusterfuck setup. Really nice :D

int main(int argc, const char* argv[]) {
#if defined(_WIN32) || defined(_WIN64)
try {
throw "Final attempt";
} catch (...) { return 0; }
#endif
const static auto directory = "./tests/raw/data";
const static auto directory = "./tests/raw/data";

// Start test; make sure the data directory isn't polluted
if (std::filesystem::exists(directory)) {
if (!std::filesystem::remove_all(directory)) {
throw "ABORT! cannot delete ./tests/raw/data";
// Start test; make sure the data directory isn't polluted
if (std::filesystem::exists(directory)) {
if (!std::filesystem::remove_all(directory)) {
throw "ABORT! cannot delete ./tests/raw/data";
}
}
}

// Run the tests
return Catch::Session().run(argc, argv);
// Run the tests
auto interm = Catch::Session().run(argc, argv);
std::cout << interm << std::endl;
return interm;
} catch (...) { return -1; }
}

0 comments on commit 1b59c08

Please sign in to comment.