mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-27 14:45:13 +08:00
Fix tests expecting non-zero status after empty function call
This commit is contained in:
parent
4530a41004
commit
87f6856954
@ -12,7 +12,7 @@
|
|||||||
# Simple function tests
|
# Simple function tests
|
||||||
|
|
||||||
####################
|
####################
|
||||||
# Ensure eval doesn't unnecessarily mess with the exit status
|
# Testing builtin status
|
||||||
|
|
||||||
####################
|
####################
|
||||||
# Verify that we can turn stderr into stdout and then pipe it
|
# Verify that we can turn stderr into stdout and then pipe it
|
||||||
|
@ -92,10 +92,7 @@ else
|
|||||||
end
|
end
|
||||||
echo Test 4 $sta
|
echo Test 4 $sta
|
||||||
|
|
||||||
logmsg "Ensure eval doesn't unnecessarily mess with the exit status"
|
logmsg "Testing builtin 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
|
||||||
|
@ -37,9 +37,7 @@ Test 3b pass
|
|||||||
Test 4 pass
|
Test 4 pass
|
||||||
|
|
||||||
####################
|
####################
|
||||||
# Ensure eval doesn't unnecessarily mess with the exit status
|
# Testing builtin status
|
||||||
1
|
|
||||||
0
|
|
||||||
Test 5 pass
|
Test 5 pass
|
||||||
|
|
||||||
####################
|
####################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user