]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Increase jlibtool test timeout to 600s under sanitizers ci-debug
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 24 Feb 2026 04:10:09 +0000 (21:10 -0700)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Tue, 24 Feb 2026 04:10:09 +0000 (21:10 -0700)
The O2-g3 sanitizer build was hitting the 300s jlibtool timeout
on unit_test_module tests (e.g. modules/files/vendor).  Double
the timeout when sanitizers are enabled to account for ASAN overhead.

Make.inc.in

index 722ab9d4ca6c783653bbad08ef4c1c898b486edc..166d5f4edd215ed61b95befd655c3469e329c15c 100644 (file)
@@ -201,12 +201,18 @@ ANALYZE.c       := @clang_path@
 #
 #  Have wrappers for the test tools, so that they run.
 #
-#  We have a hardcoded maximum execution time of 300 seconds
-#  If your test takes > 300 seconds to run, you're doing
-#  something wrong.
+#  We have a default maximum execution time of 300 seconds.
+#  When running under sanitizers, allow 600 seconds due to
+#  the additional overhead.
 #
+ifneq "$(findstring sanitize,$(CFLAGS))" ""
+TEST_TIMEOUT        := 600
+else
+TEST_TIMEOUT        := 300
+endif
+
 TEST_BIN_DIR        = ./$(BUILD_DIR)/bin/local
-TEST_BIN            = $(JLIBTOOL) $(if ${VERBOSE},--debug,--silent) --timeout=300 --mode=execute $(TEST_BIN_DIR)
+TEST_BIN            = $(JLIBTOOL) $(if ${VERBOSE},--debug,--silent) --timeout=$(TEST_TIMEOUT) --mode=execute $(TEST_BIN_DIR)
 TEST_BIN_NO_TIMEOUT = $(JLIBTOOL) $(if ${VERBOSE},--debug,--silent) --mode=execute $(TEST_BIN_DIR)
 
 #