From 7164769d33ae0403a0a73ff1d0eb5427e3af09fa Mon Sep 17 00:00:00 2001 From: ridiculousfish Date: Sat, 17 Jan 2015 15:22:37 -0800 Subject: [PATCH] Introduce tests for #1892 --- tests/test1.in | 5 +++++ tests/test1.out | 2 ++ 2 files changed, 7 insertions(+) diff --git a/tests/test1.in b/tests/test1.in index 1a7016956..a66bf598f 100644 --- a/tests/test1.in +++ b/tests/test1.in @@ -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 diff --git a/tests/test1.out b/tests/test1.out index 744348d50..d44ae37c6 100644 --- a/tests/test1.out +++ b/tests/test1.out @@ -17,6 +17,8 @@ Test 2 pass Test pass Test 3 pass Test 4 pass +1 +0 Test 5 pass Test redirections errput