summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorGreg Hudson <ghudson@mit.edu>2008-12-05 18:32:08 +0000
committerGreg Hudson <ghudson@mit.edu>2008-12-05 18:32:08 +0000
commitad22ac624093915726828a955ca8b7722ec75e2a (patch)
treee7bc96fa2ac7bb0051394fbea1252c630092c046 /src
parentc597cfdc560e1ab84c8b7d55543cce7de7fe9973 (diff)
downloadkrb5-ad22ac624093915726828a955ca8b7722ec75e2a.tar.gz
krb5-ad22ac624093915726828a955ca8b7722ec75e2a.tar.xz
krb5-ad22ac624093915726828a955ca8b7722ec75e2a.zip
In the dejagnu test suite utilities, use the caller's value of
spawn_id in check_exit_status, rather than the global value. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@21289 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/tests/dejagnu/config/default.exp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/dejagnu/config/default.exp b/src/tests/dejagnu/config/default.exp
index 50e563e2c..97649d727 100644
--- a/src/tests/dejagnu/config/default.exp
+++ b/src/tests/dejagnu/config/default.exp
@@ -600,11 +600,11 @@ proc check_klogin { testname } {
}
# check_exit_status
-# Check the exit status of a spawned program. Returns 1 if the
-# program succeeded, 0 if it failed.
+# Check the exit status of a spawned program (using the caller's value
+# of spawn_id). Returns 1 if the program succeeded, 0 if it failed.
proc check_exit_status { testname } {
- global spawn_id
+ upvar 1 spawn_id spawn_id
verbose "about to wait ($testname)"
set status_list [wait -i $spawn_id]