summaryrefslogtreecommitdiffstats
path: root/tests/assemble.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2023-10-19 18:48:35 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2023-10-19 18:48:35 (GMT)
commit6eac416e1dac9fc63b8ad41757cc3b4cf1965b82 (patch)
tree364627b4ae36382dee748096f92f74b1977d4ae8 /tests/assemble.test
parent12f22db7d88ada7a15f6c0371b6dc49ef02d698d (diff)
parent9d3abb8846c9436ab40ac8ed9ecbaa9195f6e1f2 (diff)
downloadtcl-6eac416e1dac9fc63b8ad41757cc3b4cf1965b82.zip
tcl-6eac416e1dac9fc63b8ad41757cc3b4cf1965b82.tar.gz
tcl-6eac416e1dac9fc63b8ad41757cc3b4cf1965b82.tar.bz2
Merge 8.7
Diffstat (limited to 'tests/assemble.test')
-rw-r--r--tests/assemble.test11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/assemble.test b/tests/assemble.test
index d4e44f8..0a7631a 100644
--- a/tests/assemble.test
+++ b/tests/assemble.test
@@ -141,6 +141,7 @@ test assemble-3.1 {wrong # args, compiled path} {
-returnCodes error
-match glob
-result {wrong # args:*}
+ -cleanup {rename x {}}
}
test assemble-3.2 {wrong # args, compiled path} {
-body {
@@ -235,6 +236,7 @@ test assemble-5.3 {unsupported substitution} {
list [catch {x} result] $result $::errorCode
}
-result {1 {assembly code may not contain substitutions} {TCL ASSEM NOSUBST}}
+ -cleanup {rename x {}}
}
test assemble-5.4 {backslash substitution} {
-body {
@@ -622,6 +624,7 @@ test assemble-7.24 {lsetList} {
x
}
-result {{a b} {c d} {e i} {g h}}
+ -cleanup {rename x {}}
}
test assemble-7.25 {lshift} {
-body {
@@ -3093,6 +3096,7 @@ test assemble-41.1 {Inconsistent stack usage} {*}{
-match glob
-result {inconsistent stack depths on two execution paths
("assemble" body, line 10)*}
+ -cleanup {rename x {}}
}
test assemble-41.2 {Inconsistent stack, jumptable and default} {
-body {
@@ -3111,6 +3115,7 @@ test assemble-41.2 {Inconsistent stack, jumptable and default} {
-match glob
-result {inconsistent stack depths on two execution paths
("assemble" body, line 6)*}
+ -cleanup {rename x {}}
}
test assemble-41.3 {Inconsistent stack, two legs of jumptable} {
-body {
@@ -3130,6 +3135,7 @@ test assemble-41.3 {Inconsistent stack, two legs of jumptable} {
-match glob
-result {inconsistent stack depths on two execution paths
("assemble" body, line 7)*}
+ -cleanup {rename x {}}
}
test assemble-50.1 {Ulam's 3n+1 problem, TAL implementation} {
@@ -3182,6 +3188,7 @@ test assemble-50.1 {Ulam's 3n+1 problem, TAL implementation} {
set result
}
-result {1 2 16 4 16 16 52 8 52 16 52 16 40 52 160 16 52 52 88 20 64 52 160 24 88 40 9232 52 88}
+ -cleanup {rename ulam {}}
}
test assemble-51.1 {memory leak testing} memory {
@@ -3337,6 +3344,10 @@ test assemble-52.1 {Bug 3154ea2759} {
rename fillTables {}
rename assemble {}
+if {[testConstraint memory]} {
+ rename getbytes {}
+ rename leaktest {}
+}
::tcltest::cleanupTests
return