Skip to content
Tcl Source Code View Ticket
Login

View Ticket

new io.test faillures

Closed / Fixed964268ffffffffffffffffffffffffffffffffffCreated 23 years agoUpdated 23 years ago
Descriptionplain2004-06-01 13:29:34
==== io-38.2 Tcl_SetChannelBufferSize,
Tcl_GetChannelBufferSize FAILED
==== Contents of test case:

    set f [open $path(longfile) r]
    set l ""
    lappend l [fconfigure $f -buffersize]
    fconfigure $f -buffersize 10000
    lappend l [fconfigure $f -buffersize]
    fconfigure $f -buffersize 1
    lappend l [fconfigure $f -buffersize]
    fconfigure $f -buffersize -1
    lappend l [fconfigure $f -buffersize]
    fconfigure $f -buffersize 0
    lappend l [fconfigure $f -buffersize]
    fconfigure $f -buffersize 100000
    lappend l [fconfigure $f -buffersize]
    fconfigure $f -buffersize 10000000
    lappend l [fconfigure $f -buffersize]
    close $f
    set l

---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: bad value for -buffersize: must not be
less than 10 or greater than 1Mbyte.
    while executing
"fconfigure $f -buffersize 1"
    ("uplevel" body line 7)
    invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== io-38.2 FAILED

==== io-39.11 Tcl_SetChannelOption,
Tcl_GetChannelOption, buffer size FAILED
==== Contents of test case:

    file delete $path(test1)
    set f [open $path(test1) w]
    fconfigure $f -buffersize -10
    set x [fconfigure $f -buffersize]
    close $f
    set x

---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: bad value for -buffersize: must not be
less than 10 or greater than 1Mbyte.
    while executing
"fconfigure $f -buffersize -10"
    ("uplevel" body line 4)
    invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== io-39.11 FAILED

==== io-39.12 Tcl_SetChannelOption,
Tcl_GetChannelOption buffer size FAILED
==== Contents of test case:

    file delete $path(test1)
    set f [open $path(test1) w]
    fconfigure $f -buffersize 10000000
    set x [fconfigure $f -buffersize]
    close $f
    set x

---- Test generated error; Return code was: 1
---- Return code should have been one of: 0 2
---- errorInfo: bad value for -buffersize: must not be
less than 10 or greater than 1Mbyte.
    while executing
"fconfigure $f -buffersize 10000000"
    ("uplevel" body line 4)
    invoked from within
"uplevel 1 $script"
---- errorCode: NONE
==== io-39.12 FAILED
andreas_kupriesplain2004-06-01 22:07:20
Logged In: YES 
user_id=75003

Reassigned to david, this seems to originate in his latest
changes.
davygrvyplain2004-06-02 00:30:02
Logged In: YES 
user_id=7549

-buffersize setting invalid.  I'll fix the test suite.

Did the author of these tests know that they are silently 
ignored?
davygrvyplain2004-06-02 02:16:55
Logged In: YES 
user_id=7549

range verification removed, test suite changes reverted, 
failures fixed.
Log in (anonymous is fine) to add a comment.