[compiler-rt] [test] Update temp file path used in rtsan/syscall to allow concurrent testing (PR #220978)
Ömer Sinan Ağacan via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 3 08:47:03 PDT 2026
https://github.com/osa1 created https://github.com/llvm/llvm-project/pull/220978
None
>From b0b4fc995d0e35b234a2cbc1d55fdb5e6ce3ce47 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=96mer=20Sinan=20A=C4=9Facan?= <omer at osa1.net>
Date: Thu, 3 Sep 2026 16:45:15 +0100
Subject: [PATCH] [test] Update temp file path used in rtsan/syscall to allow
concurrent testing
---
compiler-rt/test/rtsan/syscall.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/compiler-rt/test/rtsan/syscall.cpp b/compiler-rt/test/rtsan/syscall.cpp
index a23a934184a69..4bbe9a6dfa7d9 100644
--- a/compiler-rt/test/rtsan/syscall.cpp
+++ b/compiler-rt/test/rtsan/syscall.cpp
@@ -1,7 +1,7 @@
-// RUN: %clangxx -fsanitize=realtime %s -o %t
+// RUN: %clangxx -fsanitize=realtime %s -DTEMP_FILE='"'"%t.txt"'"' -o %t
// RUN: %env_rtsan_opts="halt_on_error=false" %run %t 2>&1 | FileCheck %s --check-prefixes=CHECK-RTSAN,CHECK
-// RUN: %clangxx %s -o %t
+// RUN: %clangxx %s -DTEMP_FILE='"'"%t.txt"'"' -o %t
// RUN: %run %t 2>&1 | FileCheck %s
// UNSUPPORTED: ios
@@ -17,7 +17,7 @@
#include <sys/types.h>
#include <unistd.h>
-const char *GetTemporaryFilePath() { return "/tmp/rtsan_syscall_test.txt"; }
+const char *GetTemporaryFilePath() { return TEMP_FILE; }
void custom_assert(bool condition, const char *message) {
if (!condition) {
More information about the llvm-commits
mailing list