]> granicus.if.org Git - php/commitdiff
- Fixed tests
authorFelipe Pena <felipe@php.net>
Tue, 16 Jun 2009 19:49:04 +0000 (19:49 +0000)
committerFelipe Pena <felipe@php.net>
Tue, 16 Jun 2009 19:49:04 +0000 (19:49 +0000)
ext/standard/tests/misc/time_nanosleep_error3.phpt
ext/standard/tests/misc/time_nanosleep_error4.phpt

index 0bf523f6de6b3746cb8dc84f5052da9964ab2ccc..fd2b5c51e2af9a50f659e2be4290d9b06214f44d 100644 (file)
@@ -1,7 +1,10 @@
 --TEST--
 time_nanosleep — Delay for a number of seconds and nanoseconds
 --SKIPIF--
-<?php if (!function_exists('time_nanosleep')) die("skip"); ?>
+<?php 
+if (substr(strtoupper(PHP_OS, 'WIN'))) die("skip Test is not valid for Windows");
+if (!function_exists('time_nanosleep')) die("skip");
+?>
 --CREDITS--
 Àlex Corretgé - alex@corretge.cat
 --FILE--
index 837783ba7c322de45e956336379fa53b2a9b85f5..918d254f49df36ee31bf905198078743f8835d8a 100644 (file)
@@ -1,7 +1,10 @@
 --TEST--
 time_nanosleep — Delay for a number of seconds and nanoseconds
 --SKIPIF--
-<?php if (!function_exists('time_nanosleep')) die("skip"); ?>
+<?php
+if (substr(strtoupper(PHP_OS, 'WIN'))) die("skip Test is not valid for Windows");
+if (!function_exists('time_nanosleep')) die("skip");
+?>
 --CREDITS--
 Àlex Corretgé - alex@corretge.cat
 --FILE--