--- code/trunk/RunTest 2007/09/17 09:38:32 247 +++ code/trunk/RunTest 2008/04/13 15:14:34 339 @@ -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