]> granicus.if.org Git - libexpat/commitdiff
xmltest.sh: Adapt to fixed xmlwf exit code xmlwf-fix-exit-code
authorSebastian Pipping <sebastian@pipping.org>
Thu, 5 Sep 2019 17:47:16 +0000 (19:47 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Fri, 6 Sep 2019 17:53:36 +0000 (19:53 +0200)
expat/tests/xmltest.sh

index 3375020b2cd02fb208c8c1caf5ea977e51107f3c..9b5003511430b0f720153c45aeeb286e01056461 100755 (executable)
@@ -39,9 +39,7 @@ DIFF="${MYDIR}/udiffer.py"
 RunXmlwfNotWF() {
   file="$1"
   reldir="$2"
-  $XMLWF -p "$file" > outfile || return $?
-  read outdata < outfile
-  if test "$outdata" = "" ; then
+  if $XMLWF -p "$file" > /dev/null; then
       echo "Expected not well-formed: $reldir$file"
       return 1
   else
@@ -132,7 +130,6 @@ for xmldir in ibm/not-wf/P* \
       RunXmlwfNotWF "$xmlfile" "$xmldir/"
       UpdateStatus $?
   done
-  rm outfile
 done
 
 cd "$TS/xmlconf/oasis"
@@ -140,7 +137,6 @@ for xmlfile in *fail*.xml ; do
     RunXmlwfNotWF "$xmlfile" "oasis/"
     UpdateStatus $?
 done
-rm outfile
 
 echo "Passed: $SUCCESS"
 echo "Failed: $ERROR"