diff options
author | Marius Kintel <marius@kintel.net> | 2013-05-09 10:18:51 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2013-05-09 10:18:51 (GMT) |
commit | f46118da22f806d05b410cced0f9b06ea00ac02c (patch) | |
tree | e42fece860be6d224744ba5401bf35e783dddd62 /tests/csgtestcore.cc | |
parent | f8ad66c8bbb3c78548c2e4b3b930f82d4a57b345 (diff) | |
parent | ad8ba77a15efd745fe7845e085b3daefd3f58e81 (diff) |
Merge branch 'master' into issue352
Diffstat (limited to 'tests/csgtestcore.cc')
-rw-r--r-- | tests/csgtestcore.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/csgtestcore.cc b/tests/csgtestcore.cc index 320b533..7b9dbab 100644 --- a/tests/csgtestcore.cc +++ b/tests/csgtestcore.cc @@ -148,9 +148,10 @@ int csgtestcore(int argc, char *argv[], test_type_e test_type) } if (!sysinfo_dump) { - if (fs::path(filename).has_parent_path()) { - fs::current_path(fs::path(filename).parent_path()); - } + fs::path fpath = boosty::absolute(fs::path(filename)); + fs::path fparent = fpath.parent_path(); + fs::current_path(fparent); + top_ctx.setDocumentPath(fparent.string()); } AbstractNode::resetIndexCounter(); |