]> granicus.if.org Git - postgis/commitdiff
Do not get fooled by carriage returns - chomp did not do the job now explicit remove
authorRegina Obe <lr@pcorp.us>
Wed, 20 May 2015 21:12:47 +0000 (21:12 +0000)
committerRegina Obe <lr@pcorp.us>
Wed, 20 May 2015 21:12:47 +0000 (21:12 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@13531 b70326c6-7e19-0410-871a-916f4a2858ee

regress/run_test.pl

index 46892d32087c07e881153e55a17747b9649cdf94..e03412e98a93c8efed2d566533fb8c7ce247308f 100755 (executable)
@@ -597,7 +597,7 @@ sub sql
 {
        my $sql = shift;
        my $result = `psql -tXA -d $DB -c "$sql"`;
-       chomp $result;
+       $result =~ s/[\n\r]*$//;
        $result;
 }