diff --git a/tests/test1.in b/tests/test1.in index 9cf80a128..ff3ef7788 100644 --- a/tests/test1.in +++ b/tests/test1.in @@ -62,3 +62,14 @@ else set sta fail end echo Test 4 $sta + +function test_builtin_status + return 1 +end +test_builtin_status +if [ $status -eq 1 ] + set sta pass +else + set sta fail +end +echo Test 5 $sta diff --git a/tests/test1.out b/tests/test1.out index e0e258d4c..f20a722f0 100644 --- a/tests/test1.out +++ b/tests/test1.out @@ -6,3 +6,4 @@ Test 2 pass Test pass Test 3 pass Test 4 pass +Test 5 pass