Modified to not mix ordinary print to STDOUT with a system() that prints to
authorDaniel Stenberg <daniel@haxx.se>
Mon, 18 Apr 2005 05:46:10 +0000 (05:46 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 18 Apr 2005 05:46:10 +0000 (05:46 +0000)
stdout, since I've found cases on Solaris where the second output mixes with
the first and thus the big check-script doesn't properly find the first
string in the output stream.

tests/testcurl.pl

index 2e47a62..a8da827 100755 (executable)
@@ -522,7 +522,12 @@ if ($targetos =~ /netware/) {
 }
 elsif(!$crosscompile) {
   logit "display curl$binext --version output";
-  system("./src/curl$binext --version");
+  open(F, "./src/curl$binext --version|");
+  while(<F>) {
+      print;
+      print LOG;
+  }
+  close(F);
 }
 
 if ($configurebuild && !$crosscompile) {