[compiler-rt] 6c87dea - [test][asan] Ignore new lines in header

Vitaly Buka via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 21 16:45:56 PST 2022


Author: Vitaly Buka
Date: 2022-11-21T16:38:52-08:00
New Revision: 6c87deaa07e0660ecd227414c0bc1ec0e5cbe5b0

URL: https://github.com/llvm/llvm-project/commit/6c87deaa07e0660ecd227414c0bc1ec0e5cbe5b0
DIFF: https://github.com/llvm/llvm-project/commit/6c87deaa07e0660ecd227414c0bc1ec0e5cbe5b0.diff

LOG: [test][asan] Ignore new lines in header

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/asan/TestCases/Linux/interface_symbols_linux.cpp b/compiler-rt/test/asan/TestCases/Linux/interface_symbols_linux.cpp
index a1579a541ed7e..8723fe041a9ac 100644
--- a/compiler-rt/test/asan/TestCases/Linux/interface_symbols_linux.cpp
+++ b/compiler-rt/test/asan/TestCases/Linux/interface_symbols_linux.cpp
@@ -13,13 +13,14 @@
 // RUN:  | sed -e "s/__asan_version_mismatch_check_v[0-9]+/__asan_version_mismatch_check/" \
 // RUN:  > %t.exports
 //
-// RUN: grep -e "INTERFACE_\(WEAK_\)\?FUNCTION"                                \
-// RUN:  %t.asan_interface.inc                                                 \
-// RUN:  %p/../../../../lib/ubsan/ubsan_interface.inc                          \
-// RUN:  %p/../../../../lib/sanitizer_common/sanitizer_common_interface.inc    \
-// RUN:  %p/../../../../lib/sanitizer_common/sanitizer_common_interface_posix.inc \
-// RUN:  %p/../../../../lib/sanitizer_common/sanitizer_coverage_interface.inc  \
-// RUN:  | grep -v "__sanitizer_weak_hook"                                     \
+// RUN:  cat %t.asan_interface.inc                                                 \
+// RUN:  %p/../../../../lib/ubsan/ubsan_interface.inc                              \
+// RUN:  %p/../../../../lib/sanitizer_common/sanitizer_common_interface.inc        \
+// RUN:  %p/../../../../lib/sanitizer_common/sanitizer_common_interface_posix.inc  \
+// RUN:  %p/../../../../lib/sanitizer_common/sanitizer_coverage_interface.inc      \
+// RUN:  | tr '\n' ' ' | sed "s/ //g" | sed "s/)/)\n/g"                            \
+// RUN:  | grep -e "INTERFACE_\(WEAK_\)\?FUNCTION"                                 \
+// RUN:  | grep -v "__sanitizer_weak_hook"                                         \
 // RUN:  | sed -e "s/.*(//" -e "s/).*//" > %t.imports
 //
 // RUN: cat %t.imports | sort | uniq > %t.imports-sorted


        


More information about the llvm-commits mailing list