diff options
author | Grissiom <chaos.proton@gmail.com> | 2010-11-24 00:35:56 +0800 |
---|---|---|
committer | Grissiom <chaos.proton@gmail.com> | 2010-11-24 00:35:56 +0800 |
commit | 9b97c55546dfae247f0bc2f785552243fdc3738a (patch) | |
tree | 002662c848ee4f3f86c53d417a82ebbbbfb8db0c | |
parent | 364d3dbbf8de049ab48220de6322cf004457612b (diff) |
add test case for 364d3dbbf8d
-rw-r--r-- | tests/test1.in | 11 | ||||
-rw-r--r-- | tests/test1.out | 1 |
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/test1.in b/tests/test1.in index 9cf80a12..ff3ef778 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 e0e258d4..f20a722f 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 |