File tree 3 files changed +14
-1
lines changed
3 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -3121,6 +3121,14 @@ AC_MSG_RESULT($ipv6_result)
3121
3121
3122
3122
AC_SUBST(have_ipv6)
3123
3123
3124
+ AC_ARG_ENABLE(timed-tests,
3125
+ [ --disable-timed-tests Disable timed tests ],
3126
+ [apr_has_timed_tests=$enableval], [apr_has_timed_tests=yes]
3127
+ )
3128
+ AS_IF([test "x$apr_has_timed_tests" != xno],
3129
+ [AC_DEFINE([APR_HAVE_TIME_DEPENDANT_TESTS], [1], [Whether timed tests should be enabled.])]
3130
+ )
3131
+
3124
3132
# hstrerror is only needed if IPv6 is not enabled,
3125
3133
# so getaddrinfo/gai_strerror are not used.
3126
3134
if test $have_ipv6 = 0; then
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ CLEAN_TARGETS = testfile.tmp lfstests/*.bin \
74
74
CLEAN_SUBDIRS = internal
75
75
76
76
INCDIR =../include
77
- INCLUDES =-I$(INCDIR ) -I$(srcdir ) /../include
77
+ INCLUDES =-I$(INCDIR ) -I$(srcdir ) /../include -I $( srcdir ) /../include/arch/@DEFAULT_OSDIR@
78
78
79
79
# link programs using -no-install to get real executables not
80
80
# libtool wrapper scripts which link an executable when first run.
Original file line number Diff line number Diff line change 23
23
#include "apr_general.h"
24
24
#include "apr_getopt.h"
25
25
#include "apr_atomic.h"
26
+ #include "apr_private.h"
26
27
#include "testutil.h"
27
28
28
29
#if APR_HAS_THREADS
@@ -551,13 +552,17 @@ abts_suite *testlock(abts_suite *suite)
551
552
abts_run_test (suite , threads_not_impl , NULL );
552
553
#else
553
554
abts_run_test (suite , test_thread_mutex , NULL );
555
+ #if APR_HAVE_TIME_DEPENDANT_TESTS
554
556
abts_run_test (suite , test_thread_timedmutex , NULL );
557
+ #endif
555
558
abts_run_test (suite , test_thread_nestedmutex , NULL );
556
559
abts_run_test (suite , test_thread_unnestedmutex , NULL );
557
560
abts_run_test (suite , test_thread_rwlock , NULL );
558
561
abts_run_test (suite , test_cond , NULL );
559
562
abts_run_test (suite , test_timeoutcond , NULL );
563
+ #if APR_HAVE_TIME_DEPENDANT_TESTS
560
564
abts_run_test (suite , test_timeoutmutex , NULL );
565
+ #endif
561
566
#ifdef WIN32
562
567
abts_run_test (suite , test_win32_abandoned_mutex , NULL );
563
568
#endif
You can’t perform that action at this time.
0 commit comments