File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed
Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,19 @@ __clean_shell() {
1414}
1515
1616test_interactive_login_shell () {
17- __clean_shell --login -i -c true || fail_test " error in bash init for interactive login shell"
17+ local stdout
18+ stdout=$( __clean_shell --login -i -c true 2>&1 )
19+ local status=$?
20+ [[ $status = 0 ]] || fail_test " error in bash init for interactive login shell"
21+ assert_equal ' ' " $stdout "
1822}
1923
2024test_interactive_nonlogin_shell () {
21- __clean_shell -i -c true || fail_test " error in bash init for interactive non-login shell"
25+ local stdout
26+ stdout=$( __clean_shell -i -c true 2>&1 )
27+ local status=$?
28+ [[ $status = 0 ]] || fail_test " error in bash init for interactive non-login shell"
29+ assert_equal ' ' " $stdout "
2230}
2331
2432TEST_SOURCE=$0 source test/support/suite.sh
You can’t perform that action at this time.
0 commit comments