diff options
-rw-r--r-- | tests/csgtermtest.cc | 1 | ||||
-rw-r--r-- | tests/csgtexttest.cc | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tests/csgtermtest.cc b/tests/csgtermtest.cc index 643a64f..98134f7 100644 --- a/tests/csgtermtest.cc +++ b/tests/csgtermtest.cc @@ -163,6 +163,7 @@ int main(int argc, char **argv) // if (evaluator.background) cout << "Background terms: " << evaluator.background->size() << "\n"; // if (evaluator.highlights) cout << "Highlights terms: " << evaluator.highlights->size() << "\n"; + QDir::setCurrent(original_path.absolutePath()); std::ofstream outfile; outfile.open(outfilename); if (root_term) { diff --git a/tests/csgtexttest.cc b/tests/csgtexttest.cc index 21ebf6a..fe94497 100644 --- a/tests/csgtexttest.cc +++ b/tests/csgtexttest.cc @@ -153,6 +153,7 @@ int main(int argc, char **argv) csgTree(csgcache, *root_node); // std::cout << tree.getString(*root_node) << "\n"; + QDir::setCurrent(original_path.absolutePath()); std::ofstream outfile; outfile.open(outfilename); outfile << csgcache[*root_node] << "\n"; |