aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-01-17 15:22:37 -0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2015-01-17 15:22:37 -0800
commit7164769d33ae0403a0a73ff1d0eb5427e3af09fa (patch)
tree922c0a4d5133ef310fdc0a820ccdb539a939988c /tests
parent9e3f9127473c7807b8b9f6c4c2a4d3594113d128 (diff)
Introduce tests for #1892
Diffstat (limited to 'tests')
-rw-r--r--tests/test1.in5
-rw-r--r--tests/test1.out2
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/test1.in b/tests/test1.in
index 1a701695..a66bf598 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 744348d5..d44ae37c 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