提交 2ffc8264 编写于 作者: S Serov, Vladimir

ASAN: skip test_malloc_atexit under ASAN

Signed-off-by: NSerov, Vladimir <vladimir.serov@intel.com>
上级 fc9a3bbc
......@@ -82,7 +82,7 @@ void *realloc(void *ptr, size_t size)
// Even when the test is skipped, dll source must not be empty to generate .lib to link with.
#ifndef _PGO_INSTRUMENT
#if !defined(_PGO_INSTRUMENT) && !__TBB_TEST_USE_ADDRESS_SANITIZER
void dummyFunction() {}
// TODO: enable the check under Android
......@@ -132,7 +132,7 @@ public:
};
static Foo f;
#endif
#endif // !defined(_PGO_INSTRUMENT) && !__TBB_TEST_USE_ADDRESS_SANITIZER
int main() {}
......@@ -149,6 +149,9 @@ bool dll_isMallocOverloaded();
#ifdef _PGO_INSTRUMENT
//! \brief \ref error_guessing
TEST_CASE("Known issue: test_malloc_atexit hangs if compiled with -prof-genx\n" * doctest::skip(true)) {}
#elif __TBB_TEST_USE_ADDRESS_SANITIZER
//! \brief \ref error_guessing
TEST_CASE("Known issue: test_malloc_atexit is not applicable under ASAN\n" * doctest::skip(true)) {}
#else
// Check common/allocator_overload.h for skip cases
#if !HARNESS_SKIP_TEST
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册