Skip to content

Commit 3649039

Browse files
author
jan.nijtmans
committed
Add missing "deprecated" constraint
1 parent 3b8da8d commit 3649039

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/binary.test

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ if {"::tcltest" ni [namespace children]} {
1515
namespace import -force ::tcltest::*
1616
}
1717
::tcltest::loadTestedCommands
18+
source [file join [file dirname [info script]] tcltests.tcl]
19+
1820
catch [list package require -exact tcl::test [info patchlevel]]
1921

2022
testConstraint bigEndian [expr {$tcl_platform(byteOrder) eq "bigEndian"}]
@@ -3040,7 +3042,7 @@ test binary-80.3 {Tcl_GetBytesFromObj} -constraints testbytestring -returnCodes
30403042
test binary-80.4 {Tcl_GetBytesFromObj} -constraints testbytestring -returnCodes 1 -body {
30413043
testbytestring [testbytestring "\xC0\x80\xA0\xA0\xA0\xF0\x9F\x98\x81"]
30423044
} -result "expected byte sequence but character 4 was '\U01F601' (U+01F601)"
3043-
test binary-80.5 {Tcl_GetBytesFromObj} -constraints testbytestring -constraints pointerIs64bit -body {
3045+
test binary-80.5 {Tcl_GetBytesFromObj} -constraints testbytestring -constraints {pointerIs64bit deprecated} -body {
30443046
testbytestring [string repeat A [expr 2**31]]
30453047
} -returnCodes 1 -result "byte sequence length exceeds INT_MAX"
30463048

0 commit comments

Comments
 (0)