diff --git a/test/functions.source b/test/functions.source index 2a3a3268..0f1f993e 100644 --- a/test/functions.source +++ b/test/functions.source @@ -4,15 +4,16 @@ # run a test runTest() { - local prog=$1 - shift - ( - cd $here/tmp - if [ ! -z $EXIV2_ECHO ]; then - echoTest $VALGRIND $bin$prog "$@" + local prog=$1 + shift + ( + mkdir -p $here/tmp + cd $here/tmp + if [ ! -z $EXIV2_ECHO ]; then + echoTest $VALGRIND $bin$prog$exe "$@" fi $VALGRIND $bin$prog$exe "$@" - ) + ) } ##