]> granicus.if.org Git - postgis/commitdiff
run_test hangs on MSYS (#1788)
authorPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 24 Apr 2012 20:02:54 +0000 (20:02 +0000)
committerPaul Ramsey <pramsey@cleverelephant.ca>
Tue, 24 Apr 2012 20:02:54 +0000 (20:02 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@9662 b70326c6-7e19-0410-871a-916f4a2858ee

regress/run_test

index 753be3759102df0af3d527ce82aca4ccba00f2fd..9c1b20be4c834467cd6d5dcbaf0b12cc0f1b95af 100755 (executable)
@@ -205,7 +205,7 @@ run_simple_test ()
        # Use only one call to sed to work around MSYS buffering problem
        # and use fewer calls to grep for the same problem. MSYS only accepts
        # about 16 redirects before hanging.
-       ${PSQL} -v "VERBOSITY=terse" -v "tmpfile='${TMPFILE}'" -f "${_sql}" -tXA -d ${DB} 2>&1 \
+       ${PSQL} -v "VERBOSITY=terse" -v "tmpfile='${TMPFILE}'" -tXA ${DB} < "${_sql}" 2>&1 \
                | grep --binary-files=text -v "^$" \
                | grep --binary-files=text -v "^\(INSERT\|DELETE\|UPDATE\|SELECT\)" \
                | grep --binary-files=text -v "^\(CONTEXT\|RESET\|ANALYZE\)" \