diff options
| author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-08-04 14:52:32 (GMT) |
|---|---|---|
| committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2021-08-04 14:52:32 (GMT) |
| commit | 74d70948ceeadf971baefeb94914732724d1cb9a (patch) | |
| tree | 0591d3dcd0d0098b4fc3135ae530e08353d8ed3c | |
| parent | 7ac3bf24153c2b9bd93dc7b4974e7ad7df158242 (diff) | |
| download | tcl-74d70948ceeadf971baefeb94914732724d1cb9a.zip tcl-74d70948ceeadf971baefeb94914732724d1cb9a.tar.gz tcl-74d70948ceeadf971baefeb94914732724d1cb9a.tar.bz2 | |
Fix knownMsvcBug testConstraint
| -rw-r--r-- | tests/format.test | 4 | ||||
| -rw-r--r-- | tests/socket.test | 1 | ||||
| -rw-r--r-- | tests/winFCmd.test | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/tests/format.test b/tests/format.test index f7e776d..0dd55f0 100644 --- a/tests/format.test +++ b/tests/format.test @@ -23,8 +23,8 @@ testConstraint pointerIs64bit [expr {$tcl_platform(pointerSize) >= 8}] # MSVC uses a broken libc that gets sprintf("%g") wrong. This is a pain # particularly in Continuous Integration, and there isn't anything much we can # do about it. -testConstraint knownMsvcBug [string match msvc-* [tcl::build-info compiler]] - +testConstraint knownMsvcBug [expr {![string match msvc-* [tcl::build-info compiler]]}] + test format-1.1 {integer formatting} { format "%*d %d %d %d" 6 34 16923 -12 -1 } { 34 16923 -12 -1} diff --git a/tests/socket.test b/tests/socket.test index 17a635b..4644e1d 100644 --- a/tests/socket.test +++ b/tests/socket.test @@ -79,7 +79,6 @@ testConstraint notWine [expr {![info exists ::env(CI_USING_WINE)]}] # Some tests require the Thread package or exec command testConstraint thread [expr {0 == [catch {package require Thread 2.7-}]}] testConstraint exec [llength [info commands exec]] -testConstraint knownMsvcBug [string match msvc-* [tcl::build-info compiler]] testConstraint notWinCI [expr { $tcl_platform(platform) ne "windows" || ![info exists ::env(CI)]}] diff --git a/tests/winFCmd.test b/tests/winFCmd.test index f4e3b2f..43c7ced 100644 --- a/tests/winFCmd.test +++ b/tests/winFCmd.test @@ -29,7 +29,7 @@ testConstraint longFileNames 0 # Some things fail under all Continuous Integration systems for subtle reasons # such as CI often running with elevated privileges in a container. testConstraint notInCIenv [expr {![info exists ::env(CI)]}] -testConstraint knownMsvcBug [string match msvc-* [tcl::build-info compiler]] +testConstraint knownMsvcBug [expr {![string match msvc-* [tcl::build-info compiler]]}] proc createfile {file {string a}} { set f [open $file w] |
