Skip to content

Commit 772e624

Browse files
committed
Replace dashes by underscores to avoid problems in the creation of local directories
1 parent 87b77f6 commit 772e624

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

CCDB/test/testCcdbApi.cxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ struct Fixture {
6363
char hostname[_POSIX_HOST_NAME_MAX];
6464
gethostname(hostname, _POSIX_HOST_NAME_MAX);
6565
basePath = string("Test/TestCcdbApi/") + hostname + "/pid" + getpid() + "/";
66+
// Replace dashes by underscores to avoid problems in the creation of local directories
67+
std::replace(basePath.begin(), basePath.end(), '-','_');
6668
cout << "Path we will use in this test suite : " + basePath << endl;
6769
}
6870
~Fixture()

0 commit comments

Comments
 (0)