From c3f44b495323297d3b82af54788ea9bf568947c8 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Thu, 3 Nov 2011 19:49:02 +0100 Subject: Output relative files to current directory, not source file directory 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"; -- cgit v0.10.1