Skip to content

Commit 28c27cd

Browse files
committed
Skip posix_setrlimit() test on FreeBSD
FreeBSD does not report an error on the second call, the limit is simply not raised.
1 parent 11bf5cc commit 28c27cd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

ext/posix/tests/posix_setrlimit.phpt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ posix_setrlimit(): Basic tests
44
<?php
55
if (!extension_loaded('posix')) die('skip - POSIX extension not loaded');
66
if (!function_exists('posix_setrlimit')) die('skip posix_setrlimit() not found');
7+
// On FreeBSD the second call does not report an error, though the limit isn't changed either.
8+
if (str_contains(PHP_OS, 'FreeBSD')) die('skip different behavior on FreeBSD');
79
?>
810
--FILE--
911
<?php

0 commit comments

Comments
 (0)