add skipif section on 2 tests

This commit is contained in:
Remi Collet 2016-11-01 18:26:28 +01:00
parent d877d48a6d
commit 0a9ac7b898
2 changed files with 12 additions and 0 deletions

View File

@ -1,5 +1,11 @@
--TEST-- --TEST--
Check for ares_getaddrinfo Check for ares_getaddrinfo
--SKIPIF--
<?php
if (getenv("SKIP_ONLINE_TESTS")) {
die("skip test requiring internet connection\n");
}
?>
--FILE-- --FILE--
<?php <?php
uv_getaddrinfo(uv_default_loop(), function($status, $names) { uv_getaddrinfo(uv_default_loop(), function($status, $names) {

View File

@ -1,5 +1,11 @@
--TEST-- --TEST--
Check for uv_tty Check for uv_tty
--SKIPIF--
<?php
if (function_exists("posix_isatty") && defined("STDIN") && !posix_isatty(STDIN)) {
die("skip test requiring a tty\n");
}
?>
--FILE-- --FILE--
<?php <?php
uv_fs_open(uv_default_loop(), "/dev/tty", UV::O_RDONLY, 0, function($r) { uv_fs_open(uv_default_loop(), "/dev/tty", UV::O_RDONLY, 0, function($r) {