3 # Copyright (C) 2004-2006, The Perl Foundation.
6 # the following lines re-execute this as a tcl script
7 # the \ at the end of these lines makes them a comment in tcl \
8 use lib qw(languages/tcl/lib tcl/lib lib ../lib ../../lib); # \
12 source lib/test_more.tcl
16 {wrong # args: should be "error message ?errorInfo? ?errorCode?"} \
19 eval_is {error a b c d} \
20 {wrong # args: should be "error message ?errorInfo? ?errorCode?"} \
23 eval_is {error dead} dead {simple error}
28 catch { error "dead" eek }
29 list $errorInfo $errorCode
30 } {eek NONE} {error with info}
35 catch { error "dead" eek mouse}
36 list $errorInfo $errorCode
37 } {eek mouse} {error with code}