summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2016-12-20 12:35:33 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2016-12-20 12:35:33 (GMT)
commit05119eaad1bb3205fa0a31abacf99d6ae33f20e1 (patch)
treeb98cb01fe41df5966bd8d72899a6daae1e312e26 /tests
parent3441489729c72b8349c301779704d5448cd27958 (diff)
downloadtcl-05119eaad1bb3205fa0a31abacf99d6ae33f20e1.zip
tcl-05119eaad1bb3205fa0a31abacf99d6ae33f20e1.tar.gz
tcl-05119eaad1bb3205fa0a31abacf99d6ae33f20e1.tar.bz2
Make options -reuseaddr/-reuseport forbidden without -server, no matter the value being true or false. Some additional test-cases.
Diffstat (limited to 'tests')
-rw-r--r--tests/socket.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/socket.test b/tests/socket.test
index c1076eb..80b0251 100644
--- a/tests/socket.test
+++ b/tests/socket.test
@@ -306,8 +306,20 @@ test socket_$af-1.15 {arg parsing for socket command} -constraints [list socket
socket -reuseaddr yes 4242
} -returnCodes error -result {options -reuseaddr and -reuseport are only valid for servers}
test socket_$af-1.16 {arg parsing for socket command} -constraints [list socket supported_$af] -body {
+ socket -reuseaddr no 4242
+} -returnCodes error -result {options -reuseaddr and -reuseport are only valid for servers}
+test socket_$af-1.17 {arg parsing for socket command} -constraints [list socket supported_$af] -body {
+ socket -reuseaddr
+} -returnCodes error -result {no argument given for -reuseaddr option}
+test socket_$af-1.18 {arg parsing for socket command} -constraints [list socket supported_$af] -body {
socket -reuseport yes 4242
} -returnCodes error -result {options -reuseaddr and -reuseport are only valid for servers}
+test socket_$af-1.19 {arg parsing for socket command} -constraints [list socket supported_$af] -body {
+ socket -reuseport no 4242
+} -returnCodes error -result {options -reuseaddr and -reuseport are only valid for servers}
+test socket_$af-1.20 {arg parsing for socket command} -constraints [list socket supported_$af] -body {
+ socket -reuseport
+} -returnCodes error -result {no argument given for -reuseport option}
set path(script) [makeFile {} script]