summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorandreas_kupries <akupries@shaw.ca>2004-07-16 19:20:09 (GMT)
committerandreas_kupries <akupries@shaw.ca>2004-07-16 19:20:09 (GMT)
commit606a330d6bb08072ba8bf38bc9e476039158f828 (patch)
treee75e5370f7df7ebe6463f5756266b5787482fe09
parente40644c547171476e6a3c82a26de2be520bada29 (diff)
downloadtcl-606a330d6bb08072ba8bf38bc9e476039158f828.zip
tcl-606a330d6bb08072ba8bf38bc9e476039158f828.tar.gz
tcl-606a330d6bb08072ba8bf38bc9e476039158f828.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].
-rw-r--r--ChangeLog4
-rw-r--r--tests/socket.test8
2 files changed, 11 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a52291f..7ed06aa 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2004-07-16 Andreas Kupries <andreask@activestate.com>
+ * 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].
+
* unix/tclUnixNotfy.c (NotifierThreadProc): Accepted Joe
Mistachkin's patch for [Tcl SF Bug 990500], properly closing the
notifier thread when its exits.
diff --git a/tests/socket.test b/tests/socket.test
index 39af0f6..7c15398 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.31 2004/06/23 15:36:58 dkf Exp $
+# RCS: @(#) $Id: socket.test,v 1.32 2004/07/16 19:20:09 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]