adjust h2ph.t for dos-specific problem
[p5sagit/p5-mst-13.2.git] / t / lib / h2ph.t
index 17d5509..614c74d 100755 (executable)
@@ -22,7 +22,12 @@ unless(-e '../utils/h2ph') {
     # i'll probably get in trouble for this :)
 } else {
     # does it run?
-    $ok = system("./perl -I../lib ../utils/h2ph -d. lib/h2ph.h");
+    if ($^O ne 'dos') {
+        $ok = system("./perl -I../lib ../utils/h2ph -d. lib/h2ph.h");
+    } else {
+    # h2ph prints some info which confuses t/TEST on dos/djgpp
+        $ok = system("./perl -I../lib ../utils/h2ph -d. lib/h2ph.h >nul");
+    }
     print(($ok == 0 ? "" : "not "), "ok 1\n");
     
     # does it work? well, does it do what we expect? :-)