]> granicus.if.org Git - postgis/commitdiff
Drop the support for multiple expected files (not needed anymore)
authorSandro Santilli <strk@keybit.net>
Wed, 18 Jan 2012 10:17:12 +0000 (10:17 +0000)
committerSandro Santilli <strk@keybit.net>
Wed, 18 Jan 2012 10:17:12 +0000 (10:17 +0000)
The support was also broken, btw...

git-svn-id: http://svn.osgeo.org/postgis/trunk@8862 b70326c6-7e19-0410-871a-916f4a2858ee

regress/run_test

index bc7af042de9f944784c640c4becbf257df075710..253fb831afaef0bab5384bcc348f6eb0a68cfd08 100755 (executable)
@@ -205,15 +205,14 @@ run_simple_test ()
                > "${OUTFILE}"
        rm -f ${TMPFILE} # should we keep this ?
 
-       for expfiles in "${_expected}*"; do
-               if diff -u "${_expected}" "${OUTFILE}" > ${DIFFILE}; then
-                       #SUCCESS=`expr $SUCCESS + 1`
-                       rm "${OUTFILE}" "${DIFFILE}" # we don't need these anymore
-                       return 0
-               fi
-       done
-       fail "${_msg}diff expected obtained" "${DIFFILE}"
-#              rm "${OUTFILE}" # diff is enough
+       if diff -u "${_expected}" "${OUTFILE}" > ${DIFFILE}; then
+               #SUCCESS=`expr $SUCCESS + 1`
+               rm "${OUTFILE}" "${DIFFILE}" # we don't need these anymore
+               return 0
+       else
+               fail "${_msg}diff expected obtained" "${DIFFILE}"
+               # rm "${OUTFILE}" # diff is enough
+       fi
        return 1
 }