summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2008-04-13 15:14:34 +0000
committerph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15>2008-04-13 15:14:34 +0000
commite91ca7c93fb58dbf6186de78f340729337043cd7 (patch)
treeb37bd1d18fe2350fa91861bdd72cf980e144891a
parent4c7a821fb831151e8275c8d71a30af486d5ca658 (diff)
downloadpcre-e91ca7c93fb58dbf6186de78f340729337043cd7.tar.gz
Some systems have a diff without a -u option. Test for it.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@339 2f5784b3-3f2a-0410-8824-cb99058d5e15
-rwxr-xr-xRunTest12
1 files changed, 9 insertions, 3 deletions
diff --git a/RunTest b/RunTest
index 5dc380b..f9960ac 100755
--- a/RunTest
+++ b/RunTest
@@ -1,11 +1,17 @@
#! /bin/sh
-# Run PCRE tests
+# Run PCRE tests.
-cf="diff -u"
valgrind=
-testdata=testdata
+# Set up a suitable "diff" command for comparison. Some systems
+# have a diff that lacks a -u option. Try to deal with this.
+
+if diff -u /dev/null /dev/null; then cf="diff -u"; else cf="diff"; fi
+
+# Find the test data
+
+testdata=testdata
if [ -n "$srcdir" -a -d "$srcdir" ] ; then
testdata="$srcdir/testdata"
fi