mirror of
https://github.com/libevent/libevent.git
synced 2025-01-31 09:12:55 +08:00
test: disable bufferevent/bufferevent_pair_release_lock under ASAN (too tricky)
And cannot be suppressed with suppressions due to setup routines. (cherry picked from commit 3b13a64789b3942608f04c31455668bebe224a40)
This commit is contained in:
parent
19a68bd194
commit
66341e84bc
@ -29,6 +29,10 @@
|
||||
/* The old tests here need assertions to work. */
|
||||
#undef NDEBUG
|
||||
|
||||
#ifndef __has_feature
|
||||
#define __has_feature(x) 0
|
||||
#endif
|
||||
|
||||
#ifdef _WIN32
|
||||
#include <winsock2.h>
|
||||
#include <windows.h>
|
||||
@ -203,7 +207,7 @@ static void test_bufferevent_pair_flush_normal(void) { test_bufferevent_impl(1,
|
||||
static void test_bufferevent_pair_flush_flush(void) { test_bufferevent_impl(1, BEV_FLUSH); }
|
||||
static void test_bufferevent_pair_flush_finished(void) { test_bufferevent_impl(1, BEV_FINISHED); }
|
||||
|
||||
#if defined(EVTHREAD_USE_PTHREADS_IMPLEMENTED)
|
||||
#if defined(EVTHREAD_USE_PTHREADS_IMPLEMENTED) && __has_feature(address_sanitizer)
|
||||
/**
|
||||
* Trace lock/unlock/alloc/free for locks.
|
||||
* (More heavier then evthread_debug*)
|
||||
@ -1351,7 +1355,7 @@ struct testcase_t bufferevent_testcases[] = {
|
||||
LEGACY(bufferevent_pair_flush_normal, TT_ISOLATED),
|
||||
LEGACY(bufferevent_pair_flush_flush, TT_ISOLATED),
|
||||
LEGACY(bufferevent_pair_flush_finished, TT_ISOLATED),
|
||||
#if defined(EVTHREAD_USE_PTHREADS_IMPLEMENTED)
|
||||
#if defined(EVTHREAD_USE_PTHREADS_IMPLEMENTED) && __has_feature(address_sanitizer)
|
||||
{ "bufferevent_pair_release_lock", test_bufferevent_pair_release_lock,
|
||||
TT_FORK|TT_ISOLATED|TT_NEED_THREADS|TT_NEED_BASE|TT_LEGACY|TT_NO_LOGS,
|
||||
&basic_setup, NULL },
|
||||
|
Loading…
x
Reference in New Issue
Block a user