mirror of
https://github.com/cuberite/libevent.git
synced 2025-09-19 01:04:58 -04: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. */
|
/* The old tests here need assertions to work. */
|
||||||
#undef NDEBUG
|
#undef NDEBUG
|
||||||
|
|
||||||
|
#ifndef __has_feature
|
||||||
|
#define __has_feature(x) 0
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
#include <winsock2.h>
|
#include <winsock2.h>
|
||||||
#include <windows.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_flush(void) { test_bufferevent_impl(1, BEV_FLUSH); }
|
||||||
static void test_bufferevent_pair_flush_finished(void) { test_bufferevent_impl(1, BEV_FINISHED); }
|
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.
|
* Trace lock/unlock/alloc/free for locks.
|
||||||
* (More heavier then evthread_debug*)
|
* (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_normal, TT_ISOLATED),
|
||||||
LEGACY(bufferevent_pair_flush_flush, TT_ISOLATED),
|
LEGACY(bufferevent_pair_flush_flush, TT_ISOLATED),
|
||||||
LEGACY(bufferevent_pair_flush_finished, 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,
|
{ "bufferevent_pair_release_lock", test_bufferevent_pair_release_lock,
|
||||||
TT_FORK|TT_ISOLATED|TT_NEED_THREADS|TT_NEED_BASE|TT_LEGACY|TT_NO_LOGS,
|
TT_FORK|TT_ISOLATED|TT_NEED_THREADS|TT_NEED_BASE|TT_LEGACY|TT_NO_LOGS,
|
||||||
&basic_setup, NULL },
|
&basic_setup, NULL },
|
||||||
|
Loading…
x
Reference in New Issue
Block a user