Skip to content

Commit 6c87dea

Browse files
committed
[test][asan] Ignore new lines in header
1 parent 16d3c0c commit 6c87dea

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

compiler-rt/test/asan/TestCases/Linux/interface_symbols_linux.cpp

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@
1313
// RUN: | sed -e "s/__asan_version_mismatch_check_v[0-9]+/__asan_version_mismatch_check/" \
1414
// RUN: > %t.exports
1515
//
16-
// RUN: grep -e "INTERFACE_\(WEAK_\)\?FUNCTION" \
17-
// RUN: %t.asan_interface.inc \
18-
// RUN: %p/../../../../lib/ubsan/ubsan_interface.inc \
19-
// RUN: %p/../../../../lib/sanitizer_common/sanitizer_common_interface.inc \
20-
// RUN: %p/../../../../lib/sanitizer_common/sanitizer_common_interface_posix.inc \
21-
// RUN: %p/../../../../lib/sanitizer_common/sanitizer_coverage_interface.inc \
22-
// RUN: | grep -v "__sanitizer_weak_hook" \
16+
// RUN: cat %t.asan_interface.inc \
17+
// RUN: %p/../../../../lib/ubsan/ubsan_interface.inc \
18+
// RUN: %p/../../../../lib/sanitizer_common/sanitizer_common_interface.inc \
19+
// RUN: %p/../../../../lib/sanitizer_common/sanitizer_common_interface_posix.inc \
20+
// RUN: %p/../../../../lib/sanitizer_common/sanitizer_coverage_interface.inc \
21+
// RUN: | tr '\n' ' ' | sed "s/ //g" | sed "s/)/)\n/g" \
22+
// RUN: | grep -e "INTERFACE_\(WEAK_\)\?FUNCTION" \
23+
// RUN: | grep -v "__sanitizer_weak_hook" \
2324
// RUN: | sed -e "s/.*(//" -e "s/).*//" > %t.imports
2425
//
2526
// RUN: cat %t.imports | sort | uniq > %t.imports-sorted

0 commit comments

Comments
 (0)