Properly run tests with arguments

This commit is contained in:
Laurence Withers 2008-03-07 01:59:33 +00:00
parent 47820d5a6d
commit ddc0046d41
1 changed files with 6 additions and 1 deletions

View File

@ -21,7 +21,12 @@ run_test() {
return 1 return 1
fi fi
if [ $# -eq 0 ]
then
LD_LIBRARY_PATH="obj" ${EXE} || return 1
else
LD_LIBRARY_PATH="obj" ${EXE} "$*" || return 1 LD_LIBRARY_PATH="obj" ${EXE} "$*" || return 1
fi
return 0 return 0
} }