Don't fail if the test directory already exists. sequoia
authorNeal H. Walfield <neal@pep.foundation>
Sat, 15 Dec 2018 17:02:43 +0100
branchsequoia
changeset 31879376fbf0c026
parent 3184 557a689068aa
child 3188 cbc9da42a49e
Don't fail if the test directory already exists.
test/src/EngineTestSuite.cc
     1.1 --- a/test/src/EngineTestSuite.cc	Tue Dec 11 14:29:40 2018 +0100
     1.2 +++ b/test/src/EngineTestSuite.cc	Sat Dec 15 17:02:43 2018 +0100
     1.3 @@ -125,7 +125,7 @@
     1.4      temp_test_home = test_home + "/" + my_name;
     1.5      
     1.6      int errchk = mkdir(temp_test_home.c_str(), S_IRWXU | S_IRGRP | S_IXGRP | S_IROTH | S_IXOTH);
     1.7 -    if (errchk != 0)
     1.8 +    if (errchk != 0 && errno != EEXIST)
     1.9          throw std::runtime_error("Error creating a test directory.");
    1.10  
    1.11      temp_test_home += "/" + to_string(on_test_number);