[PATCH] D28502: [compiler-rt] [Interception] Properly check for export table's size before referring to its elements.

Reid Kleckner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 10 13:48:28 PST 2017


rnk added a comment.

Running the compiler-rt tests with llvm-lit.py is a real pain because we run many test configurations from the same build directory. Here is what I do to run a single asan test:

  # from a build directory
  $ ./bin/llvm-lit.py -v projects/compiler-rt/test/asan/X86_64WindowsConfig/TestCases/Windows/dll_null_deref.cc
  -- Testing: 1 tests, 1 threads --
  PASS: AddressSanitizer-x86_64-windows :: TestCases/Windows/dll_null_deref.cc (1 of 1)
  Testing Time: 2.23s
    Expected Passes    : 1

Adjust "X86_64WindowsConfig" as appropriate for your target. You can also run X86_64WindowsDynamicConfig to run the tests with the dynamic CRT (/MD). Tab completion of individual test names doesn't work, because the tests are in the source directory, not the build directory.


https://reviews.llvm.org/D28502





More information about the llvm-commits mailing list