Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
matyhtf committed Apr 23, 2024
1 parent f6fcafb commit 69effb7
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/include/skipif.inc
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,11 @@ function skip_if_darwin()
skip('not support on darwin', stripos(PHP_OS, 'Darwin') !== false);
}

function skip_if_nts()
{
skip('not support in nts', !defined('SWOOLE_THREAD'));
}

function skip_if_musl_libc()
{
skip('not support when use musl libc', !empty(`ldd 2>&1 | grep -i musl`));
Expand Down
1 change: 1 addition & 0 deletions tests/swoole_thread/async-io.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ swoole_thread: async-io
--SKIPIF--
<?php
require __DIR__ . '/../include/skipif.inc';
skip_if_nts();
?>
--FILE--
<?php
Expand Down
1 change: 1 addition & 0 deletions tests/swoole_thread/lock.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ swoole_thread: lock
--SKIPIF--
<?php
require __DIR__ . '/../include/skipif.inc';
skip_if_nts();
?>
--FILE--
<?php
Expand Down
1 change: 1 addition & 0 deletions tests/swoole_thread/pipe.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ swoole_thread: pipe
--SKIPIF--
<?php
require __DIR__ . '/../include/skipif.inc';
skip_if_nts();
?>
--FILE--
<?php
Expand Down
1 change: 1 addition & 0 deletions tests/swoole_thread/queue.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ swoole_thread: queue
--SKIPIF--
<?php
require __DIR__ . '/../include/skipif.inc';
skip_if_nts();
?>
--FILE--
<?php
Expand Down
1 change: 1 addition & 0 deletions tests/swoole_thread/signal.phpt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ swoole_thread: signal
--SKIPIF--
<?php
require __DIR__ . '/../include/skipif.inc';
skip_if_nts();
?>
--FILE--
<?php
Expand Down

0 comments on commit 69effb7

Please sign in to comment.