Skip to content
Snippets Groups Projects
Commit 2703be82 authored by Stéphane Del Pino's avatar Stéphane Del Pino
Browse files

Use an appropriate tmpdir to generate test files

parent 8d7f6d5a
No related branches found
No related tags found
1 merge request!116Add tests for EmbeddedIDiscreteFunctionUtils
...@@ -12,7 +12,7 @@ TEST_CASE("OFStream", "[language]") ...@@ -12,7 +12,7 @@ TEST_CASE("OFStream", "[language]")
{ {
SECTION("ofstream") SECTION("ofstream")
{ {
const std::string basename = "ofstream_"; const std::string basename = std::filesystem::temp_directory_path().append("ofstream_");
const std::string filename = basename + std::to_string(parallel::rank()); const std::string filename = basename + std::to_string(parallel::rank());
// Ensures that the file is closed after this line // Ensures that the file is closed after this line
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment