use unique variable names to prevent "global variable" side effects -> endless repeat...
authorUlf Lamping <ulf.lamping@web.de>
Tue, 29 Aug 2006 21:01:05 +0000 (21:01 -0000)
committerUlf Lamping <ulf.lamping@web.de>
Tue, 29 Aug 2006 21:01:05 +0000 (21:01 -0000)
svn path=/trunk/; revision=19077

test/test-backend.sh
test/test.sh

index 8890b97eca419f875c603c0b5d95e0663abd279d..e70511de106a73bfbaf3986c72448bb102ddb0e6 100644 (file)
@@ -58,9 +58,9 @@ TEST_STEP_POST_CB=
 
 # level number of this test item (suite or step)
 test_level() {
-       LIMIT=100
+       LIMIT_LEVEL=100
        
-       for ((a=0; a <= LIMIT ; a++)) 
+       for ((a=0; a <= LIMIT_LEVEL ; a++)) 
        do
                if [ ! $a -eq 0 ]; then
                        echo -n "."
index 01278fbef0b1de82b21c99de02c489f54c07f617..c31dba8662d0c0293e92be5b1da91010dfd9595c 100644 (file)
@@ -111,8 +111,8 @@ do
                exit 0
        ;;
                "T" | "t" | "")
-LIMIT=1
-for ((a=1; a <= LIMIT ; a++))  # Double parentheses, and "LIMIT" with no "$".
+LIMIT_RUNS=1
+for ((a_runs=1; a_runs <= LIMIT_RUNS ; a_runs++))  # Double parentheses, and "LIMIT" with no "$".
 do
                test_suite_run "${menu_title[MENU_LEVEL]}" "${menu_function[MENU_LEVEL]}"
 done