summaryrefslogtreecommitdiffstats
path: root/tests/socket.test
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-16 15:03:08 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2020-10-16 15:03:08 (GMT)
commit69875ee99d8bc12504eab91f901bd8bfc9272afa (patch)
tree23cbcdb23da0a847ebe6b7b2cabe52e6a810d38b /tests/socket.test
parentfd320780c7e171b3b843e654c982a3f5199aebd5 (diff)
downloadtcl-69875ee99d8bc12504eab91f901bd8bfc9272afa.zip
tcl-69875ee99d8bc12504eab91f901bd8bfc9272afa.tar.gz
tcl-69875ee99d8bc12504eab91f901bd8bfc9272afa.tar.bz2
Fix env.test when running under wine on Linux.
Mark other tests with "notWine", which fail currently under wine
Diffstat (limited to 'tests/socket.test')
-rw-r--r--tests/socket.test11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/socket.test b/tests/socket.test
index 868c17a..6a045b1 100644
--- a/tests/socket.test
+++ b/tests/socket.test
@@ -72,6 +72,7 @@ catch [list package require -exact Tcltest [info patchlevel]]
if {[expr {[info exists ::env(TRAVIS_OSX_IMAGE)] && [string match xcode* $::env(TRAVIS_OSX_IMAGE)]}]} {
return
}
+testConstraint notWine [expr {$::tcl_platform(platform) ne "windows" || ![info exists ::env(TRAVIS_OS_NAME)] || ![string match linux $::env(TRAVIS_OS_NAME)]}]
# Some tests require the Thread package or exec command
testConstraint thread [expr {0 == [catch {package require Thread 2.7-}]}]
@@ -734,7 +735,7 @@ test socket_$af-2.12 {} [list socket stdio supported_$af] {
close $f
set ::done
} 0
-test socket_$af-2.13 {Bug 1758a0b603} {socket stdio} {
+test socket_$af-2.13 {Bug 1758a0b603} {socket stdio notWine} {
file delete $path(script)
set f [open $path(script) w]
puts $f {
@@ -1543,7 +1544,7 @@ test socket_$af-11.11 {testing spurious events} -setup {
after cancel $timer
sendCommand {close $server}
} -result {0 2690 1}
-test socket_$af-11.12 {testing EOF stickyness} -constraints [list socket supported_$af doTestsWithRemoteServer] -setup {
+test socket_$af-11.12 {testing EOF stickyness} -constraints [list socket supported_$af doTestsWithRemoteServer notWine] -setup {
set counter 0
set done 0
set port [sendCommand {
@@ -2101,7 +2102,7 @@ test socket-14.4 {[socket -async] and both, readdable and writable fileevents} \
} -result {{} bye}
# FIXME: we should also have an IPv6 counterpart of this
test socket-14.5 {[socket -async] which fails before any connect() can be made} \
- -constraints {socket supported_inet} \
+ -constraints {socket supported_inet notWine} \
-body {
# address from rfc5737
socket -async -myaddr 192.0.2.42 127.0.0.1 [randport]
@@ -2436,7 +2437,7 @@ test socket-14.12 {[socket -async] background progress triggered by [fconfigure
} -result {connection refused}
test socket-14.13 {testing writable event when quick failure} \
- -constraints {socket win supported_inet} \
+ -constraints {socket win supported_inet notWine} \
-body {
# Test for bug 336441ed59 where a quick background fail was ignored
@@ -2520,7 +2521,7 @@ test socket-14.18 {bug c6ed4acfd8: running async socket connect made other conne
} -result {}
test socket-14.19 {tip 456 -- introduce the -reuseport option} \
- -constraints {socket} \
+ -constraints {socket notWine} \
-body {
proc accept {channel address port} {}
set port [randport]