[compiler-rt] f3f465e - Do not use dirname in test (#103395)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Aug 14 09:05:38 PDT 2024
Author: Florian Mayer
Date: 2024-08-14T09:05:35-07:00
New Revision: f3f465ed144b47223caa091b5ea65d7234955aa1
URL: https://github.com/llvm/llvm-project/commit/f3f465ed144b47223caa091b5ea65d7234955aa1
DIFF: https://github.com/llvm/llvm-project/commit/f3f465ed144b47223caa091b5ea65d7234955aa1.diff
LOG: Do not use dirname in test (#103395)
Suggested in
https://github.com/llvm/llvm-project/pull/95308#discussion_r1714317539
Added:
Modified:
compiler-rt/test/hwasan/TestCases/hwasan_symbolize_stack_uas.cpp
Removed:
################################################################################
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 62caf1bd25fb03..6a7d2e9228e639 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.
More information about the llvm-commits
mailing list