]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Show stderr log file for test 518 unconditionally.
authorYang Tse <yangsita@gmail.com>
Tue, 31 Oct 2006 01:30:42 +0000 (01:30 +0000)
committerYang Tse <yangsita@gmail.com>
Tue, 31 Oct 2006 01:30:42 +0000 (01:30 +0000)
In this way we'll be able to sort out problems that might
arise in the prechek phase of the 518 test.

Once that 518 has been verified this change will be undone.

tests/runtests.pl

index e3e970869996e22e4b07622a502a176fe5d96514..f2170e62961bda90e43f7cb232dbbcefdaf89b1d 100755 (executable)
@@ -1216,7 +1216,13 @@ sub singletest {
         $cmd = $precheck[0];
         chomp $cmd;
         if($cmd) {
-            my @o = `$cmd 2>/dev/null`;
+            my @o;
+            if($testnum == 518) {
+                @o = `$cmd 2>"$LOGDIR/stderr$testnum"`;
+            }
+            else {
+                @o = `$cmd 2>/dev/null`;
+            }
             if($o[0]) {
                 $why = $o[0];
                 chomp $why;
@@ -1225,6 +1231,12 @@ sub singletest {
         }
     }
 
+    if($testnum == 518) {
+        logmsg "== Start of file $LOGDIR/stderr$testnum\n";
+        displaylogcontent("$LOGDIR/stderr$testnum");
+        logmsg "== End of file $LOGDIR/stderr$testnum\n";
+    }
+
     if($why) {
         # there's a problem, count it as "skipped"
         $skipped++;