Skip to content

Do not use dirname in test #103395

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 14, 2024
Merged

Conversation

fmayer
Copy link
Contributor

@fmayer fmayer commented Aug 13, 2024

Suggested in #95308 (comment)

Created using spr 1.3.4
@llvmbot
Copy link
Member

llvmbot commented Aug 13, 2024

@llvm/pr-subscribers-compiler-rt-sanitizer

Author: Florian Mayer (fmayer)

Changes

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 --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.

@fmayer fmayer requested review from ilovepi and vitalybuka August 13, 2024 19:30
@fmayer fmayer merged commit f3f465e into main Aug 14, 2024
11 checks passed
@fmayer fmayer deleted the users/fmayer/spr/do-not-use-dirname-in-test branch August 14, 2024 16:05
fmayer added a commit to fmayer/llvm-project that referenced this pull request Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants