[XRay] Fix argv0-log-file-name.cc race when tests are executed parallelly
authorFangrui Song <maskray@google.com>
Thu, 27 Sep 2018 23:59:57 +0000 (23:59 +0000)
committerFangrui Song <maskray@google.com>
Thu, 27 Sep 2018 23:59:57 +0000 (23:59 +0000)
`rm xray-log.*` may delete log files of other tests and cause them to
fail, when tests are executed parallelly.

llvm-svn: 343282

compiler-rt/test/xray/TestCases/Posix/argv0-log-file-name.cc

index 2f9a234..a2cb11b 100644 (file)
@@ -4,7 +4,7 @@
 // RUN: %clangxx_xray -std=c++11 %s -o %t
 // RUN: XRAY_OPTIONS="patch_premain=true xray_naive_log=true" %run %t > xray.log.file.name 2>&1
 // RUN: ls | FileCheck xray.log.file.name
-// RUN: rm xray-log.* xray.log.file.name
+// RUN: rm xray-log.argv0-log-file-name.* xray.log.file.name
 
 // UNSUPPORTED: target-is-mips64,target-is-mips64el