[test][asan] Another try to fix Windows bot
authorVitaly Buka <vitalybuka@google.com>
Tue, 22 Nov 2022 02:44:43 +0000 (18:44 -0800)
committerVitaly Buka <vitalybuka@google.com>
Tue, 22 Nov 2022 02:45:40 +0000 (18:45 -0800)
Update pattern on Linux and Darwin for consistency.

compiler-rt/test/asan/TestCases/Darwin/interface_symbols_darwin.cpp
compiler-rt/test/asan/TestCases/Linux/interface_symbols_linux.cpp
compiler-rt/test/asan/TestCases/Windows/interface_symbols_windows.cpp

index c4c40ca..9b25b00 100644 (file)
 // 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: sed ':a;N;$!ba;s/([\n ]*/(/g'                                             \
+// 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:  %p/../../../../lib/sanitizer_common/sanitizer_coverage_interface.inc     \
+// 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
index 0f7407c..ce1255c 100644 (file)
@@ -13,7 +13,7 @@
 // RUN:  | sed -e "s/__asan_version_mismatch_check_v[0-9]+/__asan_version_mismatch_check/" \
 // RUN:  > %t.exports
 //
-// RUN:  sed ':a;N;$!ba;s/[\n ]//g;s/)/)\n/g'                                      \
+// RUN: sed ':a;N;$!ba;s/([\n ]*/(/g'                                              \
 // RUN:  %t.asan_interface.inc                                                     \
 // RUN:  %p/../../../../lib/ubsan/ubsan_interface.inc                              \
 // RUN:  %p/../../../../lib/sanitizer_common/sanitizer_common_interface.inc        \
index 5626757..58808d4 100644 (file)
@@ -15,7 +15,7 @@
 // [BEWARE: be really careful with the sed commands, as this test can be run
 //  from different environments with different shells and seds]
 //
-// RUN: sed ':a;N;$!ba;s/[\n ]//g;s/)/)\n/g'                                   \
+// RUN: sed ':a;N;$!ba;s/([\n ]*/(/g'                                          \
 // RUN:  %p/../../../../lib/asan/asan_interface.inc                            \
 // RUN:  %p/../../../../lib/ubsan/ubsan_interface.inc                          \
 // RUN:  %p/../../../../lib/sanitizer_common/sanitizer_common_interface.inc    \
@@ -23,7 +23,7 @@
 // RUN:  | grep -e "^INTERFACE_FUNCTION"                                       \
 // RUN:  | sed -e "s/.*(//" -e "s/).*//" > %t.imports1
 //
-// RUN: sed ':a;N;$!ba;s/[\n ]//g;s/)/)\n/g'                                   \
+// RUN: sed ':a;N;$!ba;s/([\n ]*/(/g'                                          \
 // RUN:  %p/../../../../lib/asan/asan_interface.inc                            \
 // RUN:  %p/../../../../lib/ubsan/ubsan_interface.inc                          \
 // RUN:  %p/../../../../lib/sanitizer_common/sanitizer_common_interface.inc    \