[ASan] Only run dlopen-mixed-c-cxx.c with static runtime
authorJonas Hahnfeld <hahnjo@hahnjo.de>
Sun, 8 Sep 2019 16:08:54 +0000 (16:08 +0000)
committerJonas Hahnfeld <hahnjo@hahnjo.de>
Sun, 8 Sep 2019 16:08:54 +0000 (16:08 +0000)
commit307daa71a8f0bb258d4c89d5bad2579f468162ca
treeb523a1a4739cbbcc4fac1510ef45c47d78b1226f
parent14f1990921f7d89b419a89c88587d1a282158d42
[ASan] Only run dlopen-mixed-c-cxx.c with static runtime

This is what the original bug (http://llvm.org/PR39641) and the fix
in https://reviews.llvm.org/D63877 have been about.
With the dynamic runtime the test only passes when the asan library
is linked against libstdc++: In contrast to libc++abi, it does not
implement __cxa_rethrow_primary_exception so the regex matches the
line saying that asan cannot intercept this function. Indeed, there
is no message that the runtime failed to intercept  __cxa_throw.

Differential Revision: https://reviews.llvm.org/D67298

llvm-svn: 371336
compiler-rt/test/asan/TestCases/Linux/dlopen-mixed-c-cxx.c