[ASan/Win] Speculative fix to make the sed command line work with all sed implementations
authorTimur Iskhodzhanov <timurrrr@google.com>
Wed, 18 Feb 2015 15:14:07 +0000 (15:14 +0000)
committerTimur Iskhodzhanov <timurrrr@google.com>
Wed, 18 Feb 2015 15:14:07 +0000 (15:14 +0000)
llvm-svn: 229679

compiler-rt/test/asan/TestCases/Windows/dll_host.cc

index 0d8a7ea..79466d2 100644 (file)
@@ -8,7 +8,9 @@
 // RUN: dumpbin /EXPORTS %t | grep -o "__asan_wrap[^ ]*" | grep -v @ | sort | uniq > %t.exported_wrappers
 //
 // Get the list of ASan wrappers imported by the DLL RTL:
-// RUN: grep INTERCEPT_LIBRARY_FUNCTION %p/../../../../lib/asan/asan_win_dll_thunk.cc | grep -v define | sed -e s/.*(\\(.*\\)).*/__asan_wrap_\\1/ | sort | uniq > %t.dll_imports
+// [BEWARE: be really careful with the sed commands, as this test can be run
+//  from different environemnts with different shells and seds]
+// RUN: grep INTERCEPT_LIBRARY_FUNCTION %p/../../../../lib/asan/asan_win_dll_thunk.cc | grep -v define | sed -e s/.*(/__asan_wrap_/ | sed -e s/).*// | sort | uniq > %t.dll_imports
 //
 // Now make sure the DLL thunk imports everything:
 // RUN: echo