about summary refs log tree commit diff stats
path: root/020run.cc
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2015-08-21 10:51:02 -0700
committerKartik K. Agaram <vc@akkartik.com>2015-08-21 10:51:02 -0700
commit240470163af4a40f4280c2f551ec69e493a7e72b (patch)
tree79a9839dd038945517c5069b86a75ac5c53b2991 /020run.cc
parentc106cabdb14243fabbc55e22cfb088ad3b136a6a (diff)
downloadmu-240470163af4a40f4280c2f551ec69e493a7e72b.tar.gz
2052
If I try to run a single test and it triggers an error the trace gets
saved in the current directory, as if I was trying to log an interactive
run. Then when I try to rerun the test the trace tries to load as mu
code, and hilarity ensues. Just log interactive runs in .traces/ as well.
Diffstat (limited to '020run.cc')
-rw-r--r--020run.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/020run.cc b/020run.cc
index 9d620587..07526235 100644
--- a/020run.cc
+++ b/020run.cc
@@ -185,7 +185,7 @@ void dump_profile() {
 :(code)
 void cleanup_main() {
   if (!Trace_file.empty() && Trace_stream) {
-    ofstream fout(Trace_file.c_str());
+    ofstream fout((Trace_dir+Trace_file).c_str());
     fout << Trace_stream->readable_contents("");
     fout.close();
   }