[XRay][compiler-rt][NFC] Clean up xray log files before running test
authorDean Michael Berris <dberris@google.com>
Wed, 25 Oct 2017 05:19:20 +0000 (05:19 +0000)
committerDean Michael Berris <dberris@google.com>
Wed, 25 Oct 2017 05:19:20 +0000 (05:19 +0000)
Improves the test behaviour in the face of failure. Without this change
the fdr-single-thread.cc test may leave around artefacts of a previous
failing run since the cleanup doesn't happen if any of the intermediary
steps fail.

Non-functional change.

Subscribers: llvm-commits
llvm-svn: 316548

compiler-rt/test/xray/TestCases/Linux/fdr-single-thread.cc

index 30d834e..dd50f48 100644 (file)
@@ -1,4 +1,5 @@
 // RUN: %clangxx_xray -g -std=c++11 %s -o %t
+// RUN: rm fdr-logging-1thr-* || true
 // RUN: XRAY_OPTIONS=XRAY_OPTIONS="verbosity=1 patch_premain=true \
 // RUN:   xray_naive_log=false xray_fdr_log=true \
 // RUN:   xray_fdr_log_func_duration_threshold_us=0 \