summaryrefslogtreecommitdiff
path: root/tests/csgtestcore.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2012-03-20 11:05:18 (GMT)
committerMarius Kintel <marius@kintel.net>2012-03-20 11:05:18 (GMT)
commitb38310a837fc41dae26efcadbb8305a20d7034dc (patch)
tree2d57c6f9d1d29a10290a354c10e0674a955b35ff /tests/csgtestcore.cc
parente88ec1a6167bcd7490b0124e9e4a6041b80809be (diff)
bugfix: Support passing files without an explicit parent directory
Diffstat (limited to 'tests/csgtestcore.cc')
-rw-r--r--tests/csgtestcore.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/csgtestcore.cc b/tests/csgtestcore.cc
index b9f0d27..cb96940 100644
--- a/tests/csgtestcore.cc
+++ b/tests/csgtestcore.cc
@@ -276,7 +276,9 @@ int csgtestcore(int argc, char *argv[], test_type_e test_type)
}
if (!sysinfo_dump) {
- fs::current_path(fs::path(filename).parent_path());
+ if (fs::path(filename).has_parent_path()) {
+ fs::current_path(fs::path(filename).parent_path());
+ }
}
AbstractNode::resetIndexCounter();
contact: Jan Huwald // Impressum