diff options
author | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2008-04-13 15:14:34 +0000 |
---|---|---|
committer | ph10 <ph10@2f5784b3-3f2a-0410-8824-cb99058d5e15> | 2008-04-13 15:14:34 +0000 |
commit | e91ca7c93fb58dbf6186de78f340729337043cd7 (patch) | |
tree | b37bd1d18fe2350fa91861bdd72cf980e144891a | |
parent | 4c7a821fb831151e8275c8d71a30af486d5ca658 (diff) | |
download | pcre-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-x | RunTest | 12 |
1 files changed, 9 insertions, 3 deletions
@@ -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 |