Skip to content

Commit f3f465e

Browse files
authored
Do not use dirname in test (#103395)
Suggested in #95308 (comment)
1 parent f0fe6c6 commit f3f465e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

compiler-rt/test/hwasan/TestCases/hwasan_symbolize_stack_uas.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
// RUN: %clang_hwasan -Wl,--build-id -g %s -o %t
2-
// RUN: %env_hwasan_opts=symbolize=0 not %run %t 2>&1 | hwasan_symbolize --symbols $(dirname %t) --index | FileCheck %s
1+
// RUN: rm -rf %t; mkdir %t
2+
// RUN: %clang_hwasan -Wl,--build-id -g %s -o %t/hwasan_uas
3+
// RUN: %env_hwasan_opts=symbolize=0 not %run %t/hwasan_uas 2>&1 | hwasan_symbolize --symbols %t --index | FileCheck %s
34

45
// This doesn't work on X86, because that uses instrument-with-calls which
56
// disables frame records.

0 commit comments

Comments
 (0)