[test][asan] Try to fix Windows bot
authorVitaly Buka <vitalybuka@google.com>
Tue, 22 Nov 2022 01:36:47 +0000 (17:36 -0800)
committerVitaly Buka <vitalybuka@google.com>
Tue, 22 Nov 2022 01:37:08 +0000 (17:37 -0800)
compiler-rt/test/asan/TestCases/Windows/interface_symbols_windows.cpp

index b81682b..dcf5b1b 100644 (file)
 // [BEWARE: be really careful with the sed commands, as this test can be run
 //  from different environments with different shells and seds]
 //
-// RUN: grep -e "^INTERFACE_FUNCTION"                                          \
+// RUN: cat                                                                    \
 // RUN:  %p/../../../../lib/asan/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_coverage_interface.inc  \
+// RUN:  | tr '\n' ' ' | sed "s/ //g" | sed "s/)/)\n/g"                        \
+// RUN:  | grep -e "^INTERFACE_FUNCTION"                                       \
 // RUN:  | sed -e "s/.*(//" -e "s/).*//" > %t.imports1
 //
-// RUN: grep -e "^INTERFACE_WEAK_FUNCTION"                                     \
+// RUN: cat                                                                    \
 // RUN:  %p/../../../../lib/asan/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_coverage_interface.inc  \
+// RUN:  | tr '\n' ' ' | sed "s/ //g" | sed "s/)/)\n/g"                        \
+// RUN:  | grep -e "^INTERFACE_WEAK_FUNCTION"                                  \
 // RUN:  | sed -e "s/.*(//" -e "s/).*/__dll/" > %t.imports2
 //
 // Add functions not included in the interface lists: