Tcl Source Code

Check-in [242ebc5e92]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment: Use nonblocking writes in single-threaded IO tests to avoid deadlocks when going beyond OS buffers [Bug 3428756].
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 242ebc5e922aa2957a3412c3f38f714ff0c5ce7a
User & Date: ferrieux 2011-11-11 10:34:55
Context
2011-11-11
10:58
Generalize previous fix to all of zlib.test; also, tidy up [chan configure] flags across zlib.test. check-in: 0c68b36e42 user: ferrieux tags: trunk
10:34
Use nonblocking writes in single-threaded IO tests to avoid deadlocks when going beyond OS buffers ... check-in: 242ebc5e92 user: ferrieux tags: trunk
2011-11-09
20:40
More work in progress converting tests from [testthread] to Thread package. check-in: b9f009241b user: dgp tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to ChangeLog.






1
2
3
4
5
6
7





2011-11-03  Donal K. Fellows  <[email protected]>

	* unix/tclUnixCompat.c (TclpGetPwNam, TclpGetPwUid, TclpGetGrNam)
	(TclpGetGrGid): Use the elaborate memory management scheme outlined on
	http://www.opengroup.org/austin/docs/austin_328.txt to handle Tcl's
	use of standard reentrant versions of the passwd/group access
	functions so that everything can work on all BSDs. Problem identified
>
>
>
>
>







1
2
3
4
5
6
7
8
9
10
11
12
2011-11-11  Alexandre Ferrieux  <[email protected]>

	* tests/zlib.test: Use nonblocking writes in single-threaded IO
	tests to avoid deadlocks when going beyond OS buffers [Bug 3428756].

2011-11-03  Donal K. Fellows  <[email protected]>

	* unix/tclUnixCompat.c (TclpGetPwNam, TclpGetPwUid, TclpGetGrNam)
	(TclpGetGrGid): Use the elaborate memory management scheme outlined on
	http://www.opengroup.org/austin/docs/austin_328.txt to handle Tcl's
	use of standard reentrant versions of the passwd/group access
	functions so that everything can work on all BSDs. Problem identified

Changes to tests/zlib.test.

193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
} -cleanup {
    close $srv
    removeFile $file
} -result {read 81920 size 81920}
test zlib-9.3 "socket fcopy bg (identity)" -constraints {tempNotWin zlib} -setup {
    set srv [socket -myaddr localhost -server {apply {{c a p} {
        #puts "connection from $a:$p on $c"
        chan configure $c -encoding binary -translation binary
        puts -nonewline $c [string repeat a 81920]
        close $c
    }}} 0]
    set file [makeFile {} test.gz]
} -body {
    lassign [chan configure $srv -sockname] addr name port
    #puts "listening for connections on $addr $port"







|







193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
} -cleanup {
    close $srv
    removeFile $file
} -result {read 81920 size 81920}
test zlib-9.3 "socket fcopy bg (identity)" -constraints {tempNotWin zlib} -setup {
    set srv [socket -myaddr localhost -server {apply {{c a p} {
        #puts "connection from $a:$p on $c"
        chan configure $c -encoding binary -translation binary -blocking 0
        puts -nonewline $c [string repeat a 81920]
        close $c
    }}} 0]
    set file [makeFile {} test.gz]
} -body {
    lassign [chan configure $srv -sockname] addr name port
    #puts "listening for connections on $addr $port"