Bugfix.
[gedcom-parse.git] / t / src / test_gom
index 108f4981f2f7421b4a335c5b317cd4d4b69039fd..33b680f2eb079d403d0280d83e196240b899088c 100755 (executable)
@@ -4,8 +4,6 @@
 
 options="-q"
 extra_options=
-dmalloc=`which dmalloc`
-dmalloc_tmp=dmalloc.env
 
 while [ $# -gt 0 ]
 do
@@ -58,6 +56,8 @@ if [ "$GOM_DMALLOC_TEST" = "" ]
 then
   $ltcmd $GEDCOM_TESTENV $builddir/src/gomtest $options $testfile
 else
+  dmalloc=`which dmalloc`
+  dmalloc_tmp=dmalloc.env
   $dmalloc -b -l $GOM_DMALLOC_TEST -i 100 low > $dmalloc_tmp
   . $dmalloc_tmp
   rm $dmalloc_tmp
@@ -71,6 +71,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 ]