Overview
| Artifact ID: | 4d6437dda87940be3bfe076d52d53f244dad2f32 |
|---|---|
| Ticket: | 427196ffffffffffffffffffffffffffffffffff |
| Date: | 2001-07-18 01:45:02 |
| User: | andreas_kupries |
| Artifact Attached: | 3782b2a64f33fe2112c9fc5723e1c0068631af06 |
| Filename: | tcl.427196.1.diff.txt |
| Description: | Patch, extends testsuite |
Content:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38? tools/man2tcl ? unix/LOG ? unix/LOG.2 ? unix/linux-ix86 ? unix/buffer.tcl Index: tests/io.test =================================================================== RCS file: /cvsroot/tcl/tcl/tests/io.test,v retrieving revision 1.18 diff -u -r1.18 io.test --- tests/io.test 2001/05/23 23:22:43 1.18 +++ tests/io.test 2001/07/17 18:43:09 @@ -4723,6 +4723,17 @@ set l } {4096 10000 4096 4096 4096 100000 4096} +test io-38.3 {Tcl_SetChannelBufferSize, changing buffersize between reads} { + # This test crashes the interp if Bug #427196 is not fixed + + set chan [open [info script] r] + fconfigure $chan -buffersize 10 + set var [read $chan 2] + fconfigure $chan -buffersize 32 + append var [read $chan] + close $chan +} {} + # Test Tcl_SetChannelOption, Tcl_GetChannelOption test io-39.1 {Tcl_GetChannelOption} { @@ -6814,7 +6825,6 @@ close $f set result } [testmainthread] - # cleanup