]> granicus.if.org Git - postgis/commitdiff
Properly handle tear-down with --sfcgal
authorSandro Santilli <strk@keybit.net>
Mon, 4 May 2015 10:02:15 +0000 (10:02 +0000)
committerSandro Santilli <strk@keybit.net>
Mon, 4 May 2015 10:02:15 +0000 (10:02 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@13476 b70326c6-7e19-0410-871a-916f4a2858ee

regress/run_test.pl

index bdb96f1c3ccc27802de015a02c371b132ced28e7..5cd0e69e134b1ba782d9f8c46e2f61888a285940 100755 (executable)
@@ -1355,6 +1355,13 @@ sub drop_spatial_extensions
         $rv = system($cmd);
        $ok = 0 if $rv;
     }
+
+    if ( $OPT_WITH_SFCGAL )
+    {
+        $cmd = "psql $psql_opts -c \"DROP EXTENSION postgis_sfcgal;\" $DB >> $REGRESS_LOG 2>&1";
+        $rv = system($cmd);
+        $ok = 0 if $rv;
+    }
     
     $cmd = "psql $psql_opts -c \"DROP EXTENSION postgis\" $DB >> $REGRESS_LOG 2>&1";
     $rv = system($cmd);