summaryrefslogtreecommitdiff
path: root/src/testdir/test_tcl.vim
diff options
context:
space:
mode:
Diffstat (limited to 'src/testdir/test_tcl.vim')
-rw-r--r--src/testdir/test_tcl.vim3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/testdir/test_tcl.vim b/src/testdir/test_tcl.vim
index c2fd191b8..d25c7f14f 100644
--- a/src/testdir/test_tcl.vim
+++ b/src/testdir/test_tcl.vim
@@ -653,6 +653,9 @@ endfunc
" Test exiting current Tcl interpreter and re-creating one.
func Test_tcl_exit()
+ call assert_fails('tcl exit 1 1', 'wrong # args: should be "exit ?returnCode?"')
+ call assert_fails('tcl exit x', 'expected integer but got "x"')
+
tcl set foo "foo"
call assert_fails('tcl exit 3', 'E572: exit code 3')