mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 04:43:10 +00:00
Introduce tests for #1892
This commit is contained in:
parent
9e3f912747
commit
7164769d33
2 changed files with 7 additions and 0 deletions
|
@ -83,6 +83,11 @@ else
|
|||
end
|
||||
echo Test 4 $sta
|
||||
|
||||
# Ensure eval doesn't unnecessarily mess with the exit status
|
||||
function empty_func ; end
|
||||
false ; eval empty_func ; echo $status
|
||||
true ; eval empty_func ; echo $status
|
||||
|
||||
function test_builtin_status
|
||||
return 1
|
||||
end
|
||||
|
|
|
@ -17,6 +17,8 @@ Test 2 pass
|
|||
Test pass
|
||||
Test 3 pass
|
||||
Test 4 pass
|
||||
1
|
||||
0
|
||||
Test 5 pass
|
||||
Test redirections
|
||||
errput
|
||||
|
|
Loading…
Reference in a new issue