Skip to content

Commit 58e72db

Browse files
committed
Mark test as slow and avoid fail if fallocate isn't available
1 parent 8d6651c commit 58e72db

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

ext/standard/tests/file/bug81145.phpt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,12 @@
22
Bug #81145 (copy() and stream_copy_to_stream() fail for +4GB files)
33
--SKIPIF--
44
<?php
5+
if (getenv("SKIP_SLOW_TESTS")) die("skip slow test");
56
if (disk_free_space(__DIR__) < 0x220000000) die("skip insuffient disk space");
7+
if (PHP_OS_FAMILY !== "Windows") {
8+
exec("fallocate -h", $output, $status);
9+
if ($status !== 0) die("skip fallocate(1) not available");
10+
}
611
?>
712
--FILE--
813
<?php

0 commit comments

Comments
 (0)