From adc7305cd4e1016ec7a9f15a0ab1afaa8eb4794d Mon Sep 17 00:00:00 2001 From: Ulf Lamping Date: Tue, 29 Aug 2006 21:01:05 +0000 Subject: [PATCH] use unique variable names to prevent "global variable" side effects -> endless repeating tests of subsections svn path=/trunk/; revision=19077 --- test/test-backend.sh | 4 ++-- test/test.sh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/test/test-backend.sh b/test/test-backend.sh index 8890b97eca..e70511de10 100644 --- a/test/test-backend.sh +++ b/test/test-backend.sh @@ -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 "." diff --git a/test/test.sh b/test/test.sh index 01278fbef0..c31dba8662 100644 --- a/test/test.sh +++ b/test/test.sh @@ -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