[compiler-rt] Do not use dirname in test (PR #103395)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 13 12:03:21 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-compiler-rt-sanitizer
Author: Florian Mayer (fmayer)
<details>
<summary>Changes</summary>
---
Full diff: https://github.com/llvm/llvm-project/pull/103395.diff
1 Files Affected:
- (modified) compiler-rt/test/hwasan/TestCases/hwasan_symbolize_stack_uas.cpp (+3-2)
``````````diff
diff --git a/compiler-rt/test/hwasan/TestCases/hwasan_symbolize_stack_uas.cpp b/compiler-rt/test/hwasan/TestCases/hwasan_symbolize_stack_uas.cpp
index 62caf1bd25fb0..6a7d2e9228e63 100644
--- a/compiler-rt/test/hwasan/TestCases/hwasan_symbolize_stack_uas.cpp
+++ b/compiler-rt/test/hwasan/TestCases/hwasan_symbolize_stack_uas.cpp
@@ -1,5 +1,6 @@
-// RUN: %clang_hwasan -Wl,--build-id -g %s -o %t
-// RUN: %env_hwasan_opts=symbolize=0 not %run %t 2>&1 | hwasan_symbolize --symbols $(dirname %t) --index | FileCheck %s
+// RUN: rm -rf %t; mkdir %t
+// RUN: %clang_hwasan -Wl,--build-id -g %s -o %t/hwasan_uas
+// RUN: %env_hwasan_opts=symbolize=0 not %run %t/hwasan_uas 2>&1 | hwasan_symbolize --symbols %t --index | FileCheck %s
// This doesn't work on X86, because that uses instrument-with-calls which
// disables frame records.
``````````
</details>
https://github.com/llvm/llvm-project/pull/103395
More information about the llvm-commits
mailing list