Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2004-10-28
00:22 • Closed ticket [1054748fff]: unblessed yet exported functions used by tclTest.c</... artifact: f7d8d4fb2c user: davygrvy
2004-10-27
23:04 • Ticket [1054748fff]: 4 changes artifact: f9ede5690b user: davygrvy
17:08 • Ticket [1054748fff]: 5 changes artifact: 81af5fefa2 user: vincentdarley
2004-10-26
18:04 • New ticket [1054748fff]. artifact: a0486a6902 user: davygrvy

unblessed yet exported functions used by tclTest.c

Closed / Fixed1054748fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-10-26 18:04:28
The following symbols are used in tclTest.c:

TclpObjRemoveDirectory
TclpObjCopyDirectory
TclpObjCreateDirectory
TclpObjDeleteFile
TclpObjCopyFile
TclpObjRenameFile
TclpObjStat
TclpObjAccess
TclpOpenFileChannel

None of them are in the private (or public) Stubs
table.  It only works today because of a side-effect of
the current EXTERN macro.  Given that the behavior of
the current EXTERN macro is wrong, please modify
tclTest.c to use the blessed Tcl_FS* equivilents.
vincentdarleyplain2004-10-27 17:08:48
Logged In: YES 
user_id=32170

Unfortunately, looking more closely at the code, those test
functions are really dealing with the core of the
filesystem, and changing the functions to Tcl_FS* will cause
tests to fail.  (And in some cases, even worse, cause
infinite loops).

Hence I think we will have to find a different solution. 
The test suite needs access to functions that no other code
should have access to (and that's quite normal, I would say,
for a test suite?).
davygrvyplain2004-10-27 23:04:44
Logged In: YES 
user_id=7549

agreed.  I think it is normal to allow the test suite
internal access;  A perfect candidate for entry in private
Stubs table.  I'll work on a patch today.  Should be
invisible once done.
davygrvyplain2004-10-28 00:22:20
Logged In: YES 
user_id=7549

Done.  All 9 moved to the internal Stubs table.  Committed
to HEAD.  Thanks for looking this over as I don't know my
way around file API stuff.
Log in (anonymous is fine) to add a comment.