summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2021-04-13 10:18:40 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2021-04-13 10:18:40 (GMT)
commit4ef5cbaad759b55d3e892b3dcbfb69f7809a4cea (patch)
treef0a16ad4cd9c006aef20e48d5c85f172586affd0
parent85469e495cf0f0b319d50d4cfa0012f9a725ba02 (diff)
parent09b6123a09dedecf60d35a3306b9bd68702304e5 (diff)
downloadtcl-4ef5cbaad759b55d3e892b3dcbfb69f7809a4cea.zip
tcl-4ef5cbaad759b55d3e892b3dcbfb69f7809a4cea.tar.gz
tcl-4ef5cbaad759b55d3e892b3dcbfb69f7809a4cea.tar.bz2
Merge 8.7
-rw-r--r--tests/append.test7
-rw-r--r--tests/binary.test3
-rw-r--r--tests/proc.test1
-rw-r--r--tests/safe.test2
-rw-r--r--unix/tclKqueueNotfy.c2
5 files changed, 11 insertions, 4 deletions
diff --git a/tests/append.test b/tests/append.test
index 7d895b7..0708fc5 100644
--- a/tests/append.test
+++ b/tests/append.test
@@ -15,6 +15,7 @@ if {"::tcltest" ni [namespace children]} {
package require tcltest 2.5
namespace import -force ::tcltest::*
}
+::tcltest::loadTestedCommands
unset -nocomplain x
test append-1.1 {append command} {
@@ -65,15 +66,15 @@ test append-3.6 {append surrogates} -body {
set x \uDE02
set x \uD83D$x
} -result \uD83D\uDE02
-test append-3.7 {append \xC0 \x80} -body {
+test append-3.7 {append \xC0 \x80} -constraints testbytestring -body {
set x [testbytestring \xC0]
string length [append x [testbytestring \x80]]
} -result 2
-test append-3.8 {append \xC0 \x80} -body {
+test append-3.8 {append \xC0 \x80} -constraints testbytestring -body {
set x [testbytestring \xC0]
string length $x[testbytestring \x80]
} -result 2
-test append-3.9 {append \xC0 \x80} -body {
+test append-3.9 {append \xC0 \x80} -constraints testbytestring -body {
set x [testbytestring \x80]
string length [testbytestring \xC0]$x
} -result 2
diff --git a/tests/binary.test b/tests/binary.test
index 36e31ce..a43fb49 100644
--- a/tests/binary.test
+++ b/tests/binary.test
@@ -14,6 +14,9 @@ if {"::tcltest" ni [namespace children]} {
package require tcltest 2.5
namespace import -force ::tcltest::*
}
+::tcltest::loadTestedCommands
+catch [list package require -exact tcl::test [info patchlevel]]
+
testConstraint bigEndian [expr {$tcl_platform(byteOrder) eq "bigEndian"}]
testConstraint littleEndian [expr {$tcl_platform(byteOrder) eq "littleEndian"}]
testConstraint testbytestring [llength [info commands testbytestring]]
diff --git a/tests/proc.test b/tests/proc.test
index 23aea28..ab32567 100644
--- a/tests/proc.test
+++ b/tests/proc.test
@@ -17,6 +17,7 @@ if {"::tcltest" ni [namespace children]} {
package require tcltest 2.5
namespace import -force ::tcltest::*
}
+::tcltest::loadTestedCommands
testConstraint tcl::test [expr {![catch {package require tcl::test}]}]
testConstraint memory [llength [info commands memory]]
diff --git a/tests/safe.test b/tests/safe.test
index f3a6565..773b16f 100644
--- a/tests/safe.test
+++ b/tests/safe.test
@@ -24,6 +24,8 @@ if {"::tcltest" ni [namespace children]} {
package require tcltest 2.5
namespace import -force ::tcltest::*
}
+::tcltest::loadTestedCommands
+catch [list package require -exact tcl::test [info patchlevel]]
foreach i [interp children] {
interp delete $i
diff --git a/unix/tclKqueueNotfy.c b/unix/tclKqueueNotfy.c
index 7cacde2..ab3732d 100644
--- a/unix/tclKqueueNotfy.c
+++ b/unix/tclKqueueNotfy.c
@@ -528,7 +528,7 @@ TclpCreateFileHandler(
filePtr->mask = mask;
PlatformEventsControl(filePtr, tsdPtr, EV_ADD, isNew);
-}
+}
/*
*----------------------------------------------------------------------