[test][asan] Ignore new lines in header

GitOrigin-RevId: 6c87deaa07e0660ecd227414c0bc1ec0e5cbe5b0
diff --git a/test/asan/TestCases/Linux/interface_symbols_linux.cpp b/test/asan/TestCases/Linux/interface_symbols_linux.cpp
index a1579a5..8723fe0 100644
--- a/test/asan/TestCases/Linux/interface_symbols_linux.cpp
+++ b/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