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

Fix "cannot open file" test (finally)

parent 09c0f98e
Branches
Tags
1 merge request!176Add HDF5 support
......@@ -48,4 +48,11 @@ TEST_CASE("OFStream", "[language]")
REQUIRE(not std::filesystem::exists(filename));
}
SECTION("bad filename")
{
if (parallel::rank() == 0) {
REQUIRE_THROWS_WITH(OFStream{"/"}, "error: cannot create file /");
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment