* [LTP] [PATCH] su: Remove 'catch close'
@ 2017-07-13 17:16 Dan Rue
2017-07-20 14:26 ` Cyril Hrubis
0 siblings, 1 reply; 2+ messages in thread
From: Dan Rue @ 2017-07-13 17:16 UTC (permalink / raw)
To: ltp
Introduced in d97c827e3e, the exit codes captured by 'set codes [wait]' are
getting lost due to the 'catch close' call, causing tests 2, 4, 6, and 7 to
fail.
Signed-off-by: Dan Rue <dan.rue@linaro.org>
---
testcases/commands/su/su01_s1 | 9 ---------
1 file changed, 9 deletions(-)
diff --git a/testcases/commands/su/su01_s1 b/testcases/commands/su/su01_s1
index fd2e485da..313207b64 100755
--- a/testcases/commands/su/su01_s1
+++ b/testcases/commands/su/su01_s1
@@ -135,7 +135,6 @@ expect {
}
}
-catch close
# capture result code
set codes [wait]
set pid [lindex $codes 0]
@@ -152,7 +151,6 @@ if { $i_am_root==1 } {
}
}
expect eof
- catch close
wait
set test_env_var [exec cat $TEST_ENV_FILE]
@@ -198,7 +196,6 @@ expect {
}
}
-catch close
# capture result code
set codes [wait]
set pid [lindex $codes 0]
@@ -237,7 +234,6 @@ expect {
}
}
-catch close
# capture result code
set codes [wait]
set pid [lindex $codes 0]
@@ -292,7 +288,6 @@ expect {
}
}
-catch close
# capture result code
set codes [wait]
set pid [lindex $codes 0]
@@ -325,7 +320,6 @@ expect {
}
}
-catch close
# capture result code
set codes [wait]
set pid [lindex $codes 0]
@@ -384,7 +378,6 @@ expect {
}
}
-catch close
# capture result code
set codes [wait]
set pid [lindex $codes 0]
@@ -447,7 +440,6 @@ expect {
}
}
-catch close
# capture result code
set codes [wait]
set pid [lindex $codes 0]
@@ -481,7 +473,6 @@ expect {
}
}
-catch close
} else {
send_user "TEST: su to user1 with the user1 password expired. (FAILED),see more next line.\n"
--
2.11.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [LTP] [PATCH] su: Remove 'catch close'
2017-07-13 17:16 [LTP] [PATCH] su: Remove 'catch close' Dan Rue
@ 2017-07-20 14:26 ` Cyril Hrubis
0 siblings, 0 replies; 2+ messages in thread
From: Cyril Hrubis @ 2017-07-20 14:26 UTC (permalink / raw)
To: ltp
Hi!
Pushed, thanks.
--
Cyril Hrubis
chrubis@suse.cz
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2017-07-20 14:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-07-13 17:16 [LTP] [PATCH] su: Remove 'catch close' Dan Rue
2017-07-20 14:26 ` Cyril Hrubis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox