From: Sandro Santilli Date: Wed, 20 May 2015 18:09:56 +0000 (+0000) Subject: Do not get fooled by carriage returns X-Git-Tag: 2.2.0rc1~485 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=df904c589a526fb90e2f3024ecbbbbb510a9b797;p=postgis Do not get fooled by carriage returns git-svn-id: http://svn.osgeo.org/postgis/trunk@13529 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/regress/run_test.pl b/regress/run_test.pl index 5b879dc63..46892d320 100755 --- a/regress/run_test.pl +++ b/regress/run_test.pl @@ -597,7 +597,7 @@ sub sql { my $sql = shift; my $result = `psql -tXA -d $DB -c "$sql"`; - $result =~ s/\n$//; + chomp $result; $result; }