[llvm-commits] [PATCH] [ASan] Use dylib interposition to hook memory allocation in the dynamic runtime.

Alexey Samsonov samsonov at google.com
Thu Dec 20 05:57:41 PST 2012



================
Comment at: lit_tests/interface_symbols.c:7
@@ +6,3 @@
+// linked to the ASan runtime library.
+// RUN-Linux: nm %t.exe | grep " T " | sed "s/.* T //" \
+// RUN-Linux:    | grep "__asan_" | sed "s/___asan_/__asan_/" \
----------------
This RUN-lines won't work, simply create platofrm-specific tests in lit_tests/Linux and lit_tests/Darwin

================
Comment at: lit_tests/lit.cfg:91
@@ -90,1 +90,3 @@
 config.substitutions.append( ('CHECK-%os', ("CHECK-" + config.host_os)))
+# Define RUN-%os to run OS-dependent commands.
+config.substitutions.append( ('RUN-%os', ("RUN-" + config.host_os)))
----------------
Remove this


http://llvm-reviews.chandlerc.com/D216



More information about the llvm-commits mailing list