From 5d988e7eee2544e7105fa5b578f33eaf936505b2 Mon Sep 17 00:00:00 2001 From: Andy Postnikov Date: Wed, 12 Aug 2026 06:35:00 +0200 Subject: [PATCH] Fix racy tests sharing tests/data.out streams_001, streams_002 and streams_004 all write, stat and unlink the very same file tests/data.out. Since php-src 1d2ea5ce22c ("Run tests in parallel by default", GH-22939, first released in php-8.6.0beta1) run-tests.php spawns min(nproc, 10) workers by default, so these three tests race each other and fail intermittently - filesize()/file_get_contents() hit a path a sibling test has just unlinked. Give each test its own scratch file, the way tests/dictionary_streams.phpt already does. --- tests/streams_001.phpt | 2 +- tests/streams_002.phpt | 2 +- tests/streams_004.phpt | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/streams_001.phpt b/tests/streams_001.phpt index fe7576d..0fc674d 100644 --- a/tests/streams_001.phpt +++ b/tests/streams_001.phpt @@ -4,7 +4,7 @@ compress.brotli streams basic