]> granicus.if.org Git - postgis/commitdiff
Use system diff only if it knows how to strip trailing CR (#2344)
authorSandro Santilli <strk@keybit.net>
Mon, 27 May 2013 07:03:21 +0000 (07:03 +0000)
committerSandro Santilli <strk@keybit.net>
Mon, 27 May 2013 07:03:21 +0000 (07:03 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@11502 b70326c6-7e19-0410-871a-916f4a2858ee

regress/run_test.pl

index 99e803f8675fe695c92401b4480fcf6ab74ba14f..467589d8c793519421b6482a4fe4b10ab391cb4c 100755 (executable)
@@ -35,7 +35,7 @@ our $REGDIR = abs_path(dirname($0));
 our $SHP2PGSQL = $REGDIR . "/../loader/shp2pgsql";
 our $PGSQL2SHP = $REGDIR . "/../loader/pgsql2shp";
 our $RASTER2PGSQL = $REGDIR . "/../raster/loader/raster2pgsql";
-our $sysdiff = `which diff 2>/dev/null`;
+our $sysdiff = !system("diff --strip-trailing-cr $0 $0 2> /dev/null");
 
 ##################################################################
 # Parse command line opts