aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2006-08-29 21:01:05 +0000
committerulfl <ulfl@f5534014-38df-0310-8fa8-9805f1628bb7>2006-08-29 21:01:05 +0000
commit3ab9805e098301f3cb8be772cbb83dca982644eb (patch)
tree32fca7a46d1ddfcdd6892f538c5e41699301b50c /test
parent705821d06cb9712bfc8e7116097e50462d93f696 (diff)
use unique variable names to prevent "global variable" side effects -> endless repeating tests of subsections
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@19077 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'test')
-rw-r--r--test/test-backend.sh4
-rw-r--r--test/test.sh4
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