]> granicus.if.org Git - php/commitdiff
MFH
authorMarcus Boerger <helly@php.net>
Fri, 15 Nov 2002 16:13:10 +0000 (16:13 +0000)
committerMarcus Boerger <helly@php.net>
Fri, 15 Nov 2002 16:13:10 +0000 (16:13 +0000)
-Allow skip in upper letters.
-Add 'info' result to --SKIPIF-- -> see following dba commits

run-tests.php

index b7a8031f775115065f03134f4f550539626671fa..27e4339dd028d208ed17793508e9e175cadd9a9d 100755 (executable)
@@ -534,7 +534,7 @@ TEST $file
                        save_text($tmp_skipif, $section_text['SKIPIF']);
                        $output = `$php $info_params $tmp_skipif`;
                        @unlink($tmp_skipif);
-                       if (ereg("^skip", trim($output))){
+                       if (ereg("^skip", strtolower(trim($output)))) {
                                echo "SKIP $tested";
                                $reason = (ereg("^skip[[:space:]]*(.+)\$", trim($output))) ? ereg_replace("^skip[[:space:]]*(.+)\$", "\\1", trim($output)) : FALSE;
                                if ($reason) {
@@ -544,6 +544,12 @@ TEST $file
                                }
                                return 'SKIPPED';
                        }
+                       if (ereg("^info", strtolower(trim($output)))) {
+                               $reason = (ereg("^info[[:space:]]*(.+)\$", trim($output))) ? ereg_replace("^info[[:space:]]*(.+)\$", "\\1", trim($output)) : FALSE;
+                               if ($reason) {
+                                       $tested .= " (info: $reason)";
+                               }
+                       }
                }
        }