Skip to content
Tcl Source Code Artifact [aaf2b34760]
Login

Artifact [aaf2b34760]

Artifact aaf2b34760e91eb9680a07eacb7ac3a66abaf676:

Ticket change [aaf2b34760] - Ticket [513983ffffffffff|513983ffff] <i>invalid calls to [test] should throw errors</i> status still Open with 4 other changes by kenstir on 2002-02-08 22:06:32.
D 2002-02-08T22:06:32
J icomment Logged\sIn:\sYES\s\nuser_id=246646\n\nDon,\sI\slike\syour\spatch\sbetter,\sbecause\sit\sdoesn't\sduplicate\s\nthe\serror\sstrings,\sand\sit\shas\sthe\sbonus\sof\sprinting\sout\sthe\s\nvalid\sflags\swhen\syou\ssupply\sa\sbad\sone.\s\sI\sdon't\sknow\swhat\s\nthe\soriginal\spurpose\swas\sof\sprinting\sthe\serror\sto\s\n[errorChannel],\sbut\sI'm\shappy\sto\savoid\sit.\n\nI'm\salso\sOK\swith\syour\slatest\ssuggestion:\srecord\sthe\snumber\s\nof\stests\sfailing\sdue\sto\ssyntax\serrors.\s\sI\swould\sbe\shappy\sto\s\ncount\sthese\serror\sconditions\sin\sthe\sFailed\scolumn.\s\sThe\s\nmain\sissue\sfor\smyself,\sand\sI\ssuspect\sfor\sthe\sguy\swith\sthe\s\n11,293\stests,\sis\sthat\sI\sdon't\swant\sto\saccidentally\smiss\s\nprogramming\serrors.\s\sThis\sis\swhy\sI\swrite\stests\sin\sthe\sfirst\s\nplace.\n\nI\sdon't\sbelieve\sthat\sleaving\sthings\sas\sthey\sare\sis\sa\s\nreasonable\salternative.\s\sLet's\ssay\stest\s137\sout\sof\s11,293\s\nfails\sdue\sto\sa\ssyntax\serror.\s\sHow\swould\syou\snotice?\s\s\nCurrently,\sthe\sonly\srecord\syou\shave\sthat\sanything\swent\s\nwrong\sis\ssome\ssmall\sbit\sof\soutput\sin\sa\spotential\ssea\sof\s\noutput.\s\sThere\sare\sthings\sthat\syou\scould\sdo\sto\snotice\sthem,\s\nsuch\sas\swrapping\stcltest::test\sin\syour\sown\sproc,\sor\s\nwrapping\sputs,\sor\screating\sa\sstacked\serrorChannel,\sbut\sI\s\ndon't\sthink\sany\sof\sthem\sare\sas\suseful,\sor\sas\seasy,\sas\s\nthrowing\san\sexception.\n\nMy\sfirst\spreference\sis\sto\stake\sDon's\spatch\sas\sis.\s\sThis\s\npatch\streats\sprogramming\serrors\sas\sexceptions,\swhich\sis\s\nstandard\spractice\sfor\stcl\slibraries.\s\sFor\sinstance,\sthe\s\nscripts\s{array\snames}\sand\s{file}\sthrow\sexceptions\sdue\sto\s\nusage\serrors.\n\nMy\ssecond\spreference\sis\sto\simplement\sDon's\ssuggestion\sof\s\nrecording\sthe\snumber\sof\ssyntax\serrors.\s\sThis\sis\sless\s\nattractive\sto\sme\sbecause\sit\sis\sa\smore\sinvasive\schange.\s\s\nHaving\sa\snew\selement\sin\sthe\stcltest::numTests\sarray\swould\s\nbe\sOK\sand\sstraightforward,\sthough\sit\swould\shave\sthe\s\nunfortunate\sside\seffect\sof\smaking\sthe\ssummary\soutput\sfrom\s\ntcltest::cleanupTests\sharder\sto\sread;\sit\sprobably\swould\sno\s\nlonger\sfit\son\sone\sline.\s\sHaving\ssyntax\serrors\scounted\sunder\s\nthe\sFailed\scolumn\swould\sbe\sbetter,\sthough\sI\sfear\sit\swould\s\nbe\smore\sinvasive\sto\sthe\sexisting\scontrol\sstructure.\n\n
J login kenstir
J mimetype text/plain
J username kenstir
K 513983ffffffffffffffffffffffffffffffffff
U kenstir
Z 187bfd04afe68fc47ee84671b162671c