]> granicus.if.org Git - postgis/commitdiff
Print usage and exit if only option switches are given to run_test.pl
authorSandro Santilli <strk@keybit.net>
Wed, 9 Oct 2013 15:58:00 +0000 (15:58 +0000)
committerSandro Santilli <strk@keybit.net>
Wed, 9 Oct 2013 15:58:00 +0000 (15:58 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@12023 b70326c6-7e19-0410-871a-916f4a2858ee

regress/run_test.pl

index 7fd16f520c02f1d893569bfefd6390395661f8cd..dc26303367e04b78353a1f739a5e0a16fb0e5453 100755 (executable)
@@ -20,12 +20,6 @@ use strict;
 #  Check output against <testname>_expected
 ##################################################################
 
-if ( @ARGV < 1 )
-{
-       usage();
-}
-
-
 ##################################################################
 # Global configuration items
 ##################################################################
@@ -65,6 +59,13 @@ GetOptions (
        'extensions' => \$OPT_EXTENSIONS
        );
 
+if ( @ARGV < 1 )
+{
+       usage();
+}
+
+
+
 ##################################################################
 # Set the locale to "C" so error messages match
 # Save original locale to set back