rm -f test.failed test.success test.ignored
-# Work around a libtool issue on solaris
-export LD_LIBRARY_PATH=@top_srcdir@/src/.libs
+# Work around a libtool issue on solaris, making sure that it works even on sh older than tcsh
+LD_LIBRARY_PATH=@top_srcdir@/src/.libs
+if export LD_LIBRARY_PATH ; then
+ :
+else
+ setenv LD_LIBRARY_PATH @top_srcdir@/src/.libs
+fi
##
## Args parsing (simplistic for now)
# overwrites "valgrind" as a value, but should be exclusive.
exenv=wine
fi
- if [ "x$test" = "xdict_crash@EXEEXT@" ] ; then
+ exenvsave=$exenv
+ if [ "x$test" = "xxbt/dict_crash@EXEEXT@" ] ; then
+ if echo $exenv | grep valgrind >/dev/null ; then
+ exenv=
+ fi
$exenv ./$test --xbt-log="root.thres=info" 2>&1
retval=$?
else
- exenvsave=$exenv
if [ x@EXEEXT@ != x ] && [ x$exenv = xwine ] ; then
if echo ${test} | grep @EXEEXT@ >/dev/null ; then : ; else
exenv=""
fi
$exenv ./$test --xbt-log="root.thres=info" 2>&1
retval=$?
- exenv=$exenvsave
fi
+ exenv=$exenvsave
if [ $retval != 0 ] ; then if [ $retval != 77 ]; then
echo "## failed" # . Rerun $test with full details."
# if [ "x$test" = "xdict_crash" ] ; then