Followup to https://github.com/php/php-src/pull/5043
In the middle of running this test with TESTS=-j9,
run-tests.php stopped the test suite because the partition started
with 3.5GB of free disk space and new test files couldn't be created.
Reclaiming the disk space of that file also took a while.
Closes GH-5283
if (PHP_INT_SIZE < 8) {
die('skip.. only valid for 64-bit');
}
+if (disk_free_space(__DIR__) <= 4.1 * 1024 * 1024 * 1024 ) {
+ // Add a bit of extra overhead for other processes, temporary files created while running tests, etc.
+ die('skip.. This test requires over 4GB of free disk space on this disk partition');
+}
?>
--FILE--
<?php