mirror of
https://github.com/danog/ext-uv.git
synced 2024-11-26 20:14:47 +01:00
add skipif section on 2 tests
This commit is contained in:
parent
d877d48a6d
commit
0a9ac7b898
@ -1,5 +1,11 @@
|
||||
--TEST--
|
||||
Check for ares_getaddrinfo
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (getenv("SKIP_ONLINE_TESTS")) {
|
||||
die("skip test requiring internet connection\n");
|
||||
}
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
uv_getaddrinfo(uv_default_loop(), function($status, $names) {
|
||||
|
@ -1,5 +1,11 @@
|
||||
--TEST--
|
||||
Check for uv_tty
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (function_exists("posix_isatty") && defined("STDIN") && !posix_isatty(STDIN)) {
|
||||
die("skip test requiring a tty\n");
|
||||
}
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
uv_fs_open(uv_default_loop(), "/dev/tty", UV::O_RDONLY, 0, function($r) {
|
||||
|
Loading…
Reference in New Issue
Block a user