File tree 3 files changed +11
-0
lines changed
3 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -3103,6 +3103,12 @@ AC_MSG_RESULT($ipv6_result)
3103
3103
3104
3104
AC_SUBST(have_ipv6)
3105
3105
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
+
3106
3112
# hstrerror is only needed if IPv6 is not enabled,
3107
3113
# so getaddrinfo/gai_strerror are not used.
3108
3114
if test $have_ipv6 = 0; then
Original file line number Diff line number Diff line change @@ -312,6 +312,7 @@ extern "C" {
312
312
#define APR_HAS_LARGE_FILES @aprlfs@
313
313
#define APR_HAS_XTHREAD_FILES @apr_has_xthread_files@
314
314
#define APR_HAS_OS_UUID @osuuid@
315
+ #define APR_HAS_TIME_DEPENDANT_TESTS @apr_has_timedtests@
315
316
316
317
#define APR_PROCATTR_USER_SET_REQUIRES_PASSWORD @apr_procattr_user_set_requires_password@
317
318
Original file line number Diff line number Diff line change @@ -551,13 +551,17 @@ abts_suite *testlock(abts_suite *suite)
551
551
abts_run_test (suite , threads_not_impl , NULL );
552
552
#else
553
553
abts_run_test (suite , test_thread_mutex , NULL );
554
+ #if APR_HAS_TIME_DEPENDANT_TESTS
554
555
abts_run_test (suite , test_thread_timedmutex , NULL );
556
+ #endif
555
557
abts_run_test (suite , test_thread_nestedmutex , NULL );
556
558
abts_run_test (suite , test_thread_unnestedmutex , NULL );
557
559
abts_run_test (suite , test_thread_rwlock , NULL );
558
560
abts_run_test (suite , test_cond , NULL );
559
561
abts_run_test (suite , test_timeoutcond , NULL );
562
+ #if APR_HAS_TIME_DEPENDANT_TESTS
560
563
abts_run_test (suite , test_timeoutmutex , NULL );
564
+ #endif
561
565
#ifdef WIN32
562
566
abts_run_test (suite , test_win32_abandoned_mutex , NULL );
563
567
#endif
You can’t perform that action at this time.
0 commit comments