Small correction in help string.
[gedcom-parse.git] / t / src / test_script
index 3a1cf8e37b0f91ed6c32916893b8a83ec90876ce..00139226d038140cc18ee386e11330447f1125ad 100755 (executable)
@@ -33,7 +33,10 @@ then
   srcdir=.
   options=$extra_options
 else
-  testfile=$srcdir/input/$file
+  case $file in
+    ./*) testfile=$file ;;
+    *)   testfile=$srcdir/input/$file ;;
+  esac
   options="$options $extra_options"
 fi
 
@@ -46,6 +49,8 @@ builddir=`pwd`
 ltcmd="$builddir/../libtool --mode=execute -dlopen $builddir/../gedcom/libgedcom.la"
 GCONV_PATH=.:$GCONV_PATH
 export GCONV_PATH
+LANG=C
+export LANG
 ln -s $srcdir/../data/gedcom.enc .
 ln -s $builddir/../iconv/glibc/.libs/ANSI_Z39.47.so .
 ln -s $srcdir/../iconv/glibc/gconv-modules .
@@ -61,6 +66,7 @@ rm gconv-modules
 echo "Result is $result (expected: $expected_result)" >> $logfile
 if [ "$result" -ne "$expected_result" ]
 then
+  echo "Not the expected return value!" >> $logfile
   exit 1
 else
   if [ -r core ]