]> granicus.if.org Git - postgis/commitdiff
Properly drop the temporary directory setup for backend output
authorSandro Santilli <strk@keybit.net>
Fri, 24 Feb 2012 10:21:17 +0000 (10:21 +0000)
committerSandro Santilli <strk@keybit.net>
Fri, 24 Feb 2012 10:21:17 +0000 (10:21 +0000)
This prevents errors when running "make check" against backends
owned by different users.

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

regress/run_test

index c772fbacfdc0e6368d0d3d21eeae829c84a9dc5b..0168f93a3fa5b85f0b0b6f631cd34f3a33fe28d7 100755 (executable)
@@ -195,7 +195,8 @@ run_simple_test ()
        show_progress
 
        OUTFILE="${TMPDIR}/test_${RUN}_out"
-       TMPFILE="${TMPDIR}/tmp/test_${RUN}_tmp"
+       BETMPDIR="${TMPDIR}/tmp/"
+       TMPFILE="${BETMPDIR}/test_${RUN}_tmp"
        DIFFILE="${TMPDIR}/test_${RUN}_diff"
 
        # Use intermediate file to prevent MingW buffering problems
@@ -219,7 +220,8 @@ run_simple_test ()
                | sed 's/Self-intersection .*/Self-intersection/' \
                | sed 's/^ROLLBACK/COMMIT/' \
                > "${OUTFILE}"
-       rm -f ${TMPFILE} # should we keep this ?
+       rm -f "${BETMPDIR}/"* # should we keep these ?
+       rmdir "${BETMPDIR}" # should we keep this ?
 
        if test x"$OPT_EXPECT" = "xyes"; then
                echo_inline " expected"