[compiler-rt] r343282 - [XRay] Fix argv0-log-file-name.cc race when tests are executed parallelly

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Thu Sep 27 16:59:58 PDT 2018


Author: maskray
Date: Thu Sep 27 16:59:57 2018
New Revision: 343282

URL: http://llvm.org/viewvc/llvm-project?rev=343282&view=rev
Log:
[XRay] Fix argv0-log-file-name.cc race when tests are executed parallelly

`rm xray-log.*` may delete log files of other tests and cause them to
fail, when tests are executed parallelly.

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

Modified: compiler-rt/trunk/test/xray/TestCases/Posix/argv0-log-file-name.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/xray/TestCases/Posix/argv0-log-file-name.cc?rev=343282&r1=343281&r2=343282&view=diff
==============================================================================
--- compiler-rt/trunk/test/xray/TestCases/Posix/argv0-log-file-name.cc (original)
+++ compiler-rt/trunk/test/xray/TestCases/Posix/argv0-log-file-name.cc Thu Sep 27 16:59:57 2018
@@ -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
 




More information about the llvm-commits mailing list