From ddc0046d41f8622e1d929dd0bc14da84443bd035 Mon Sep 17 00:00:00 2001 From: Laurence Withers Date: Fri, 7 Mar 2008 01:59:33 +0000 Subject: [PATCH] Properly run tests with arguments --- skel/run-test.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/skel/run-test.sh b/skel/run-test.sh index b30bf3d..3e34eed 100755 --- a/skel/run-test.sh +++ b/skel/run-test.sh @@ -21,7 +21,12 @@ run_test() { return 1 fi - LD_LIBRARY_PATH="obj" ${EXE} "$*" || return 1 + if [ $# -eq 0 ] + then + LD_LIBRARY_PATH="obj" ${EXE} || return 1 + else + LD_LIBRARY_PATH="obj" ${EXE} "$*" || return 1 + fi return 0 }