[compiler-rt] r229679 - [ASan/Win] Speculative fix to make the sed command line work with all sed implementations

Timur Iskhodzhanov timurrrr at google.com
Wed Feb 18 07:14:07 PST 2015


Author: timurrrr
Date: Wed Feb 18 09:14:07 2015
New Revision: 229679

URL: http://llvm.org/viewvc/llvm-project?rev=229679&view=rev
Log:
[ASan/Win] Speculative fix to make the sed command line work with all sed implementations

Modified:
    compiler-rt/trunk/test/asan/TestCases/Windows/dll_host.cc

Modified: compiler-rt/trunk/test/asan/TestCases/Windows/dll_host.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/dll_host.cc?rev=229679&r1=229678&r2=229679&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/dll_host.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/dll_host.cc Wed Feb 18 09:14:07 2015
@@ -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





More information about the llvm-commits mailing list