[compiler-rt] r316548 - [XRay][compiler-rt][NFC] Clean up xray log files before running test
Dean Michael Berris via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 24 22:19:20 PDT 2017
Author: dberris
Date: Tue Oct 24 22:19:20 2017
New Revision: 316548
URL: http://llvm.org/viewvc/llvm-project?rev=316548&view=rev
Log:
[XRay][compiler-rt][NFC] Clean up xray log files before running test
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
Modified:
compiler-rt/trunk/test/xray/TestCases/Linux/fdr-single-thread.cc
Modified: compiler-rt/trunk/test/xray/TestCases/Linux/fdr-single-thread.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/xray/TestCases/Linux/fdr-single-thread.cc?rev=316548&r1=316547&r2=316548&view=diff
==============================================================================
--- compiler-rt/trunk/test/xray/TestCases/Linux/fdr-single-thread.cc (original)
+++ compiler-rt/trunk/test/xray/TestCases/Linux/fdr-single-thread.cc Tue Oct 24 22:19:20 2017
@@ -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 \
More information about the llvm-commits
mailing list