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

Prevent hdf5 file locking during tests

parent b15f8f62
No related branches found
No related tags found
1 merge request!176Add HDF5 support
......@@ -52,6 +52,9 @@ main(int argc, char* argv[])
Catch::Session session;
int result = session.applyCommandLine(argc, argv);
// disable file locking to avoid mess in tests
setenv("HDF5_USE_FILE_LOCKING", "FALSE", 1);
if (result == 0) {
const auto& config = session.config();
if (config.listReporters() or config.listTags() or config.listTests()) {
......
......@@ -33,6 +33,9 @@ main(int argc, char* argv[])
Kokkos::initialize(args);
}
// disable file locking to avoid mess in tests
setenv("HDF5_USE_FILE_LOCKING", "FALSE", 1);
PETScWrapper::initialize(argc, argv);
SLEPcWrapper::initialize(argc, argv);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment