summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2019-07-29 15:35:09 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2019-07-29 15:35:09 (GMT)
commit4a3d06786b316f740dfdd4a7b41b751e9d155d66 (patch)
treec9eca3b204e5cd970e2d8a645346932594f7c710 /tests
parent29b6cb48013e77d8ca911bdbdc7361a1a551f300 (diff)
downloadtcl-4a3d06786b316f740dfdd4a7b41b751e9d155d66.zip
tcl-4a3d06786b316f740dfdd4a7b41b751e9d155d66.tar.gz
tcl-4a3d06786b316f740dfdd4a7b41b751e9d155d66.tar.bz2
Enable testcases on Visual Studio builds. Disable some test-cases on Travis, which are known to fail.
Diffstat (limited to 'tests')
-rw-r--r--tests/format.test5
-rw-r--r--tests/ioCmd.test3
2 files changed, 5 insertions, 3 deletions
diff --git a/tests/format.test b/tests/format.test
index 5797f2b..442580e 100644
--- a/tests/format.test
+++ b/tests/format.test
@@ -21,6 +21,7 @@ testConstraint longIs64bit [expr {int(0x8000000000000000) < 0}]
testConstraint wideIs64bit \
[expr {(wide(0x80000000) > 0) && (wide(0x8000000000000000) < 0)}]
testConstraint wideBiggerThanInt [expr {wide(0x80000000) != int(0x80000000)}]
+testConstraint knownMsvcBug [expr {![info exists ::env(TRAVIS_OS_NAME)] || ![string match windows $::env(TRAVIS_OS_NAME)]}]
test format-1.1 {integer formatting} {
format "%*d %d %d %d" 6 34 16923 -12 -1
@@ -251,13 +252,13 @@ test format-6.1 {floating-point zeroes} {eformat} {
test format-6.2 {floating-point zeroes} {eformat} {
format "%.4e %.4f %.4g" 0.0 0.0 0.0 0.0
} {0.0000e+00 0.0000 0}
-test format-6.3 {floating-point zeroes} {eformat} {
+test format-6.3 {floating-point zeroes} {eformat knownMsvcBug} {
format "%#.4e %#.4f %#.4g" 0.0 0.0 0.0 0.0
} {0.0000e+00 0.0000 0.000}
test format-6.4 {floating-point zeroes} {eformat} {
format "%.0e %.0f %.0g" 0.0 0.0 0.0 0.0
} {0e+00 0 0}
-test format-6.5 {floating-point zeroes} {eformat} {
+test format-6.5 {floating-point zeroes} {eformat knownMsvcBug} {
format "%#.0e %#.0f %#.0g" 0.0 0.0 0.0 0.0
} {0.e+00 0. 0.}
test format-6.6 {floating-point zeroes} {
diff --git a/tests/ioCmd.test b/tests/ioCmd.test
index 057a869..460299b 100644
--- a/tests/ioCmd.test
+++ b/tests/ioCmd.test
@@ -22,6 +22,7 @@ if {[lsearch [namespace children] ::tcltest] == -1} {
testConstraint fcopy [llength [info commands fcopy]]
testConstraint testchannel [llength [info commands testchannel]]
testConstraint testthread [llength [info commands testthread]]
+testConstraint knownMsvcBug [expr {![info exists ::env(TRAVIS_OS_NAME)] || ![string match windows $::env(TRAVIS_OS_NAME)]}]
#----------------------------------------------------------------------
@@ -754,7 +755,7 @@ test iocmd-21.19 {chan create, init failure -> no channel, no finalize} -match g
rename foo {}
set res
} -result {{} {initialize rc* {read write}} 1 {*all required methods*} {}}
-test iocmd-21.20 {Bug 88aef05cda} -setup {
+test iocmd-21.20 {Bug 88aef05cda} -constraints knownMsvcBug -setup {
proc foo {method chan args} {
switch -- $method blocking {
chan configure $chan -blocking [lindex $args 0]