diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-06-09 20:25:18 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2022-06-09 20:25:18 (GMT) |
commit | 3c3ebea4105cc63a1cc3bf80c6796f0f662f0ec3 (patch) | |
tree | f461e773e0aa5f52b5b51a36b165225cd7e65ad4 /tests/interp.test | |
parent | d307130311321b2d327d13669905d9873b5863d3 (diff) | |
parent | 8c311313a11ad2b7caa8a3626b03fb16da985df6 (diff) | |
download | tcl-3c3ebea4105cc63a1cc3bf80c6796f0f662f0ec3.zip tcl-3c3ebea4105cc63a1cc3bf80c6796f0f662f0ec3.tar.gz tcl-3c3ebea4105cc63a1cc3bf80c6796f0f662f0ec3.tar.bz2 |
Merge 9.0
Diffstat (limited to 'tests/interp.test')
-rw-r--r-- | tests/interp.test | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/interp.test b/tests/interp.test index 385d3e2..532f1e5 100644 --- a/tests/interp.test +++ b/tests/interp.test @@ -2414,21 +2414,21 @@ test interp-29.1.4 {interp recursionlimit argument checking} { interp delete moo list $result $msg } {1 {expected integer but got "bar"}} -test interp-29.1.5 {interp recursionlimit argument checking} { +test interp-29.1.5 {interp recursionlimit argument checking} -body { interp create moo set result [catch {interp recursionlimit moo 0} msg] interp delete moo list $result $msg -} {1 {recursion limit must be > 0}} -test interp-29.1.6 {interp recursionlimit argument checking} { +} -match glob -result {1 {recursion limit must be > 0 and < *}} +test interp-29.1.6 {interp recursionlimit argument checking} -body { interp create moo set result [catch {interp recursionlimit moo -1} msg] interp delete moo list $result $msg -} {1 {recursion limit must be > 0}} +} -match glob -result {1 {recursion limit must be > 0 and < *}} test interp-29.1.7 {interp recursionlimit argument checking} { interp create moo - set result [catch {interp recursionlimit moo [expr {wide(1)<<32}]} msg] + set result [catch {interp recursionlimit moo [expr {wide(1)<<64}]} msg] interp delete moo list $result [string range $msg 0 35] } {1 {integer value too large to represent}} @@ -2444,21 +2444,21 @@ test interp-29.1.9 {child recursionlimit argument checking} { interp delete moo list $result $msg } {1 {expected integer but got "foo"}} -test interp-29.1.10 {child recursionlimit argument checking} { +test interp-29.1.10 {child recursionlimit argument checking} -body { interp create moo set result [catch {moo recursionlimit 0} msg] interp delete moo list $result $msg -} {1 {recursion limit must be > 0}} -test interp-29.1.11 {child recursionlimit argument checking} { +} -match glob -result {1 {recursion limit must be > 0 and < *}} +test interp-29.1.11 {child recursionlimit argument checking} -body { interp create moo set result [catch {moo recursionlimit -1} msg] interp delete moo list $result $msg -} {1 {recursion limit must be > 0}} +} -match glob -result {1 {recursion limit must be > 0 and < *}} test interp-29.1.12 {child recursionlimit argument checking} { interp create moo - set result [catch {moo recursionlimit [expr {wide(1)<<32}]} msg] + set result [catch {moo recursionlimit [expr {wide(1)<<64}]} msg] interp delete moo list $result [string range $msg 0 35] } {1 {integer value too large to represent}} |