summaryrefslogtreecommitdiffstats
path: root/graphviz-2.26.0-rtest-errout-fix.patch
blob: 83f0cb28fa120e3b3775ff4a436c19580c3691f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
--- graphviz-2.26.0/rtest/rtest.sh.old	2009-12-06 00:27:49.000000000 +0100
+++ graphviz-2.26.0/rtest/rtest.sh	2010-10-22 10:37:42.952893435 +0200
@@ -279,14 +279,16 @@
     $testcmd 2> errout
     RVAL=$?
 
+    if [[ -s errout ]]
+    then
+      cat errout
+    fi
+    
     if [[ $RVAL != 0 || ! -s $OUTPATH ]]
     then
       (( CRASH_CNT+=1 ))
       print -u 2 "Test $TESTNAME:$i : == Layout failed =="
       print -u 2 "  $testcmd"
-    elif [[ -s errout ]]
-    then
-      cat errout
     elif [[ $GENERATE == 1 ]]
     then
       continue