summaryrefslogtreecommitdiffstats
path: root/tests/socket.test
diff options
context:
space:
mode:
authorandreas_kupries <akupries@shaw.ca>2004-07-16 19:20:25 (GMT)
committerandreas_kupries <akupries@shaw.ca>2004-07-16 19:20:25 (GMT)
commit1dc12e2b36b9cd4c047127dc903fd82caf48bfb6 (patch)
treeafe468329df8e4709a0a8c7c93908b5e978d477e /tests/socket.test
parent6d98f4802e28a85db3f31200679d8b44284f0584 (diff)
downloadtcl-1dc12e2b36b9cd4c047127dc903fd82caf48bfb6.zip
tcl-1dc12e2b36b9cd4c047127dc903fd82caf48bfb6.tar.gz
tcl-1dc12e2b36b9cd4c047127dc903fd82caf48bfb6.tar.bz2
* tests/socket.test: Accepted two new testcases by Stuart Casoff
<stwo@users.sourceforge.net> checking that -server and -async don't go together [Tcl SF Bug 796534].
Diffstat (limited to 'tests/socket.test')
-rw-r--r--tests/socket.test8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/socket.test b/tests/socket.test
index 63e7a26..ab5c89c 100644
--- a/tests/socket.test
+++ b/tests/socket.test
@@ -10,7 +10,7 @@
# See the file "license.terms" for information on usage and redistribution
# of this file, and for a DISCLAIMER OF ALL WARRANTIES.
#
-# RCS: @(#) $Id: socket.test,v 1.26.2.2 2004/02/25 23:38:17 dgp Exp $
+# RCS: @(#) $Id: socket.test,v 1.26.2.3 2004/07/16 19:20:25 andreas_kupries Exp $
# Running socket tests with a remote server:
# ------------------------------------------
@@ -242,6 +242,12 @@ socket -server command ?-myaddr addr? port}}
test socket-1.12 {arg parsing for socket command} {socket} {
list [catch {socket foo badport} msg] $msg
} {1 {expected integer but got "badport"}}
+test socket-1.13 {arg parsing for socket command} {socket} {
+list [catch {socket -async -server} msg] $msg
+} {1 {cannot set -async option for server sockets}}
+test socket-1.14 {arg parsing for socket command} {socket} {
+list [catch {socket -server foo -async} msg] $msg
+} {1 {cannot set -async option for server sockets}}
set path(script) [makeFile {} script]