mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +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
|
end
|
||||||
echo Test 4 $sta
|
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
|
function test_builtin_status
|
||||||
return 1
|
return 1
|
||||||
end
|
end
|
||||||
|
|
|
@ -17,6 +17,8 @@ Test 2 pass
|
||||||
Test pass
|
Test pass
|
||||||
Test 3 pass
|
Test 3 pass
|
||||||
Test 4 pass
|
Test 4 pass
|
||||||
|
1
|
||||||
|
0
|
||||||
Test 5 pass
|
Test 5 pass
|
||||||
Test redirections
|
Test redirections
|
||||||
errput
|
errput
|
||||||
|
|
Loading…
Reference in a new issue