File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3103,6 +3103,12 @@ AC_MSG_RESULT($ipv6_result)
31033103
31043104AC_SUBST(have_ipv6)
31053105
3106+ AC_ARG_ENABLE(timed-tests,
3107+ [ --disable-timed-tests Disable timed tests ],
3108+ [apr_has_timedtests="0"], [apr_has_timedtests="1"]
3109+ )
3110+ AC_SUBST(apr_has_timedtests)
3111+
31063112# hstrerror is only needed if IPv6 is not enabled,
31073113# so getaddrinfo/gai_strerror are not used.
31083114if test $have_ipv6 = 0; then
Original file line number Diff line number Diff line change @@ -312,6 +312,7 @@ extern "C" {
312312#define APR_HAS_LARGE_FILES @aprlfs@
313313#define APR_HAS_XTHREAD_FILES @apr_has_xthread_files@
314314#define APR_HAS_OS_UUID @osuuid@
315+ #define APR_HAS_TIME_DEPENDANT_TESTS @apr_has_timedtests@
315316
316317#define APR_PROCATTR_USER_SET_REQUIRES_PASSWORD @apr_procattr_user_set_requires_password@
317318
Original file line number Diff line number Diff line change @@ -551,13 +551,17 @@ abts_suite *testlock(abts_suite *suite)
551551 abts_run_test (suite , threads_not_impl , NULL );
552552#else
553553 abts_run_test (suite , test_thread_mutex , NULL );
554+ #if APR_HAS_TIME_DEPENDANT_TESTS
554555 abts_run_test (suite , test_thread_timedmutex , NULL );
556+ #endif
555557 abts_run_test (suite , test_thread_nestedmutex , NULL );
556558 abts_run_test (suite , test_thread_unnestedmutex , NULL );
557559 abts_run_test (suite , test_thread_rwlock , NULL );
558560 abts_run_test (suite , test_cond , NULL );
559561 abts_run_test (suite , test_timeoutcond , NULL );
562+ #if APR_HAS_TIME_DEPENDANT_TESTS
560563 abts_run_test (suite , test_timeoutmutex , NULL );
564+ #endif
561565#ifdef WIN32
562566 abts_run_test (suite , test_win32_abandoned_mutex , NULL );
563567#endif
You can’t perform that action at this time.
0 commit comments