From c641825c64e42627a2c9cac969b371ed532e0b57 Mon Sep 17 00:00:00 2001 From: Ryan Sundberg Date: Mon, 4 Oct 2021 20:12:25 -0700 Subject: [PATCH] Zend/tests/bug74093.phpt: Fix failing test case This test case fails (on non-Windows hosts, where it is enabled) due to mismatching output in the error log language. This fixes the expectation, and also rewrites the test procedure in a more stable fashion. The objective of the test case is to run a program that exceeds the max_execution_time and verify that the process was aborted. The previous implementation tested this using a loop on array_intersect with large enough inputs to "probably" take enough time to trigger max_execution_time to abort it. With faster CPUs, over time this test can become flaky. Instead we simply spin a loop until enough wall clock time has passed to check our assertion. --- Zend/tests/bug74093.phpt | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Zend/tests/bug74093.phpt b/Zend/tests/bug74093.phpt index 7f20285805..32eb445ddc 100644 --- a/Zend/tests/bug74093.phpt +++ b/Zend/tests/bug74093.phpt @@ -1,5 +1,5 @@ --TEST-- -Bug #74093 (Maximum execution time of n+2 seconds exceed not written in error_log) +Bug #74093 (Maximum execution time exceeded not written in error_log) --SKIPIF-- --EXPECTF-- -Fatal error: Maximum execution time of 1+1 seconds exceeded %s +Fatal error: Maximum execution time of 1 second exceeded in %s -- 2.31.1 f1a8'/>
path: root/build-aux/update-NEWS.scm
AgeCommit message (Collapse)Author
2021-05-10maint: update-NEWS: Sort packages prior writing to the data file.Maxim Cournoyer
* build-aux/update-NEWS.scm (main): Sort packages.
2021-04-23build-aux: Relax the regexp used to match NEWS sections.Maxim Cournoyer
A number of packages doesn't really make sense in the name of the section to be substituted. This change allows using simply '*** new packages' instead of '*** 1999 new packages', for example, and have the update-NEWS.scm script update it. * build-aux/update-NEWS.scm (write-packages-added) <regexp>: Do not care about leading white space in the name of the section.