New Tcl_Chan "assertions" failing test suite
Closed / Fixede08c2c407b053bbfaab66d480ed5348cf33d10abCreated 12 years agoUpdated 12 years ago
bchplain2015-02-08 05:27:40
from ./unix make test: ... io.test Test file error: Required getHandleProc is unset. ioCmd.test Test file error: Required getHandleProc is unset. ioTrans.test Test file error: Required getHandleProc is unset. iogt.test Test file error: Required getHandleProc is unset. ...
Referenced by2
4b4a843052[e08c2c407b] The getHandleProc routine in the Tcl_Channel struct is optional. Update the docs to make that clear. check-in2015-02-20 19:30:485d588dbd27[e08c2c407b] The getHandleProc routine in the Tcl_Channel struct is optional. Update the docs to make that clear. check-in2015-02-20 19:29:20
bchplain2015-02-08 05:56:10
From Tcl_ChannelCreate(3):
...
Those which are not necessary may be set to NULL in the
struct: blockModeProc, seekProc, setOptionProc, getOptionProc, and
close2Proc, in addition to flushProc, handlerProc, threadActionProc,
and truncateProc. Other functions that cannot be implemented in a
meaningful way should return EINVAL when called, to indicate that the
operations they represent are not available.
...
getHandlerProc is not listed as "may be set to NULL". Neither are inputProc or outputProc.
bchplain2015-02-08 06:12:46
[/artifact/6b51b69eab2bef1c2c8b6d7d671a2290521f3db2?ln=71] inconsistent with docs.
dgpplain2015-02-19 20:33:33
Tcl trunk is now panicking in the test suite, just as the comment below reports. Please fix!
dgpplain2015-02-20 19:31:24
Fixed the docs.
Log in (anonymous is fine) to add a comment.