summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2018-10-29 14:38:24 (GMT)
committerdgp <dgp@users.sourceforge.net>2018-10-29 14:38:24 (GMT)
commitce6023fade965eb75c891c4d455cd95c25a169d1 (patch)
tree2dd37175db269c5ac6e970d75b8870dae4d2f158 /tests
parent4e9742386c1eca652011ab183946b25e5191d29f (diff)
downloadtcl-ce6023fade965eb75c891c4d455cd95c25a169d1.zip
tcl-ce6023fade965eb75c891c4d455cd95c25a169d1.tar.gz
tcl-ce6023fade965eb75c891c4d455cd95c25a169d1.tar.bz2
[TIP 525] Backport package tcltest 2.5
Diffstat (limited to 'tests')
-rw-r--r--tests/tcltest.test10
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/tcltest.test b/tests/tcltest.test
index 0bcf342..ca720ee 100644
--- a/tests/tcltest.test
+++ b/tests/tcltest.test
@@ -908,7 +908,7 @@ removeFile load.tcl
# [interpreter]
test tcltest-13.1 {interpreter} {
- -constraints notValgrind
+ -constraints notValgrind
-setup {
#to do: Why is $::tcltest::tcltest being saved and restored here?
set old $::tcltest::tcltest
@@ -926,7 +926,7 @@ test tcltest-13.1 {interpreter} {
# constraint, which involves a call to [exec] that might fail after
# "fork" and before "exec", in which case the forked process will not
# have a chance to clean itself up before exiting, which causes
- # valgrind to issue numerous "still reachable" reports.
+ # valgrind to issue numerous "still reachable" reports.
set ::tcltest::tcltest $old
}
}
@@ -1207,7 +1207,7 @@ test tcltest-21.2 {force a test command failure} {
} {1}
}
-returnCodes 1
- -result {bad option "1": must be -body, -cleanup, -constraints, -errorOutput, -match, -output, -result, -returnCodes, or -setup}
+ -result {bad option "1": must be -body, -cleanup, -constraints, -errorCode, -errorOutput, -match, -output, -result, -returnCodes, or -setup}
}
test tcltest-21.3 {test command with setup} {
@@ -1300,7 +1300,7 @@ test tcltest-21.7 {test command - bad flag} {
}
}
-returnCodes 1
- -result {bad option "-foobar": must be -body, -cleanup, -constraints, -errorOutput, -match, -output, -result, -returnCodes, or -setup}
+ -result {bad option "-foobar": must be -body, -cleanup, -constraints, -errorCode, -errorOutput, -match, -output, -result, -returnCodes, or -setup}
}
# alternate test command format (these are the same as 21.1-21.6, with the
@@ -1320,7 +1320,7 @@ test tcltest-21.8 {force a test command failure} \
} \
-returnCodes 1 \
-cleanup {set ::tcltest::currentFailure $fail} \
- -result {bad option "1": must be -body, -cleanup, -constraints, -errorOutput, -match, -output, -result, -returnCodes, or -setup}
+ -result {bad option "1": must be -body, -cleanup, -constraints, -errorCode, -errorOutput, -match, -output, -result, -returnCodes, or -setup}
test tcltest-21.9 {test command with setup} \
-setup {set foo 1} \