From a426d77f10289d95a6360a00f7e10ecbc07d5372 Mon Sep 17 00:00:00 2001 From: Peter Verthez Date: Thu, 24 Oct 2002 16:56:24 +0000 Subject: [PATCH] Portability fix: 'if ! diff' is not always supported. --- t/anselconv.test | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/t/anselconv.test b/t/anselconv.test index 2eb0495..be99800 100755 --- a/t/anselconv.test +++ b/t/anselconv.test @@ -23,16 +23,18 @@ fi echo "Testing conversion from ANSEL to UTF-8" >> testgedcom.out iconv -f ANSEL -t UTF-8 $srcdir/input/ansel.ged > anselutf8.out -if ! diff $srcdir/input/anselutf8.ged anselutf8.out >> testgedcom.out +if diff $srcdir/input/anselutf8.ged anselutf8.out >> testgedcom.out then - retval=1 -else echo "Testing conversion from UTF-8 to ANSEL" >> testgedcom.out iconv -f UTF-8 -t ANSEL $srcdir/input/anselutf8.ged > ansel.out - if ! diff $srcdir/input/ansel.ged ansel.out >> testgedcom.out + if diff $srcdir/input/ansel.ged ansel.out >> testgedcom.out then + : + else retval=1 fi +else + retval=1 fi rm gedcom.enc -- 2.30.2