---
 tests/test.include.in | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/tests/test.include.in b/tests/test.include.in
index f8113f5..cf75833 100644
--- a/tests/test.include.in
+++ b/tests/test.include.in
@@ -58,8 +58,10 @@ check_num_output_lines()
 run_bg () {
     LOG="$1"
     shift || exit 1
-    PROG="$1"
-    shift || exit 1
+    [ "$#" -gt 0 ] || {
+        printf %s\\n "ERROR: run_bg(): must specify command to run" >&2
+        exit 1
+    }
 
     log_dir="."
     if test -n "$TEST_LOG_DIR"; then
@@ -74,16 +76,16 @@ run_bg () {
                     --track-fds=yes \
                     --leak-check=full \
                     --error-exitcode=1 \
-                    "$PROG" "$@" <&0 &
+                    "$@" <&0 &
             else
                 valgrind \
                     --log-file="$log_dir/valgrind.$TEST_LOG_NAME.$LOG.log" \
                     --error-exitcode=1 \
-                    "$PROG" "$@" <&0 &
+                    "$@" <&0 &
             fi
             ;;
         "" | "none")
-            "$PROG" "$@" <&0 &
+            "$@" <&0 &
             ;;
         *)
             echo >&2 "Error: invalid value for \$CHECKTOOL: $CHECKTOOL"
-- 
2.4.5


------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
rpstir-devel mailing list
rpstir-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/rpstir-devel

Reply via email to