]> granicus.if.org Git - php/commitdiff
fix tests (add missing SKIPIF sections and a fix for FreeBSD)
authorAntony Dovgal <tony2001@php.net>
Thu, 16 Nov 2006 13:49:01 +0000 (13:49 +0000)
committerAntony Dovgal <tony2001@php.net>
Thu, 16 Nov 2006 13:49:01 +0000 (13:49 +0000)
ext/standard/tests/file/touch.phpt
ext/standard/tests/general_functions/sys_getloadavg.phpt
ext/standard/tests/network/ip.phpt

index da720d4aba595cbc9e38d5495eed9a5a3025071e..aea68b0d44dd9efcb3685507d0aace379e929e7b 100644 (file)
@@ -38,7 +38,7 @@ int(%d)
 bool(true)
 int(101)
 bool(true)
-int(-1)
+int(%i)
 bool(true)
 int(100)
 bool(true)
index 9f77863999a855427855fe4623ba032d72314b15..cb3a798dbda656b1b5ec3316c7c258e727cf227a 100644 (file)
@@ -1,5 +1,9 @@
 --TEST--
 sys_getloadavg() tests
+--SKIPIF--
+<?php
+if (!function_exists("sys_getloadavg")) die("skip");
+?>
 --FILE--
 <?php
 
index e4fe93ed875bc34551edcd06912166d24b8e7f5b..27fc0837237be9cb92aa6e029535fdfa07d3e54c 100644 (file)
@@ -1,5 +1,10 @@
 --TEST--
 ip2long() & long2ip() tests
+--SKIPIF--
+<?php
+if (PHP_INT_SIZE != 4) die("skip this test is for 32bit platform only");
+?>
+
 --FILE--
 <?php