Skip to content
Tcl Source Code Artifact [13c9623a39]
Login

Artifact [13c9623a39]

Artifact 13c9623a39e3321d24c8922c755a55dd142223b4:

Ticket change [13c9623a39] - New ticket [575817ffffffffff|575817ffff] <i>basic.test needs write access to .</i>. by dgp on 2002-07-01 04:12:55.
D 2002-07-01T04:12:55
J assignee msofer
J cmimetype text/plain
J comment \nTcl's\stest\ssuites\sshould\sbe\swritten\sto\swrite\nany\sfiles\sthat\sneed\swriting\sinto\sthe\ndirectory\s[::tcltest::temporaryDirectory].\nThat\sway,\sthe\stest\ssuite\scan\srun\seven\nby\susers\swithout\swrite\saccess\sto\sthe\nbuild\sarea,\sgiven\sa\ssuitable\s-tmpdir\nargument.\n\nbasic.test\shas\s5\sfailing\stests\sin\sthis\ssituation:\n\n====\sbasic-26.1\sTcl_EvalObj:\spreserve\sobject\swhile\nevaling\sit\sFAILED\n====\sContents\sof\stest\scase:\n\n\s\s\s\s#\sIf\sobject\sisn't\spreserved,\serrorInfo\swould\sbe\sset\sto\n\s\s\s\s#\s"foo\\n\s\s\s\swhile\sexecuting\\n\\"garbage\sbytes\\""\nbecause\sthe\sobject's\n\s\s\s\s#\sstring\swould\shave\sbeen\sfreed,\sleaving\sgarbage\nbytes\sfor\sthe\serror\n\s\s\s\s#\smessage.\n\n\s\s\s\sproc\sbgerror\s{args}\s{set\s::x\s$::errorInfo}\n\s\s\s\sset\sf\s[open\stest1\sw]\n\s\s\s\sfileevent\s$f\swritable\s"fileevent\s$f\swritable\s{};\nerror\sfoo"\n\s\s\s\sset\sx\s{}\n\s\s\s\svwait\sx\n\s\s\s\sclose\s$f\n\s\s\s\sfile\sdelete\stest1\n\s\s\s\srename\sbgerror\s{}\n\s\s\s\sset\sx\n\n----\sResult\swas:\ncouldn't\sopen\s"test1":\spermission\sdenied\n----\sResult\sshould\shave\sbeen\s(exact\smatching):\nfoo\n\s\s\s\swhile\sexecuting\n"error\sfoo"\n----\sTest\sgenerated\serror;\sReturn\scode\swas:\s1\n----\sReturn\scode\sshould\shave\sbeen\sone\sof:\s0\s2\n====\sbasic-26.1\sFAILED\n\n\n====\sbasic-46.2\sTcl_AllowExceptions:\sexception\sreturn\nnot\sallowed\sFAILED\n====\sContents\sof\stest\scase:\n\n\s\s\s\smakeFile\s{\n\s\s\s\s\s\s\s\sputs\shello\n\s\s\s\s\s\s\s\sbreak\n\s\s\s\s}\sBREAKtest\n\s\s\s\sset\sres\s[list\s[catch\s{exec\s[info\snameofexecutable]\nBREAKtest}\smsg]\s$msg]\n\s\s\s\sremoveFile\sBREAKtest\n\s\s\s\sset\sres\n\n----\sResult\swas:\n1\s{couldn't\sread\sfile\s"BREAKtest":\sno\ssuch\sfile\sor\ndirectory}\n----\sResult\sshould\shave\sbeen\s(exact\smatching):\n1\s{hello\ninvoked\s"break"\soutside\sof\sa\sloop\n\s\s\s\swhile\sexecuting\n"break"\n\s\s\s\s(file\s"BREAKtest"\sline\s3)}\n====\sbasic-46.2\sFAILED\n\n\n====\sbasic-46.3\sTcl_AllowExceptions:\sexception\sreturn\nnot\sallowed\sFAILED\n====\sContents\sof\stest\scase:\n\n\s\s\s\smakeFile\s{\n\s\s\s\s\s\s\s\sinterp\salias\s{}\spatch\s{}\sinfo\spatchlevel\n\s\s\s\s\s\s\s\spatch\n\s\s\s\s\s\s\s\sbreak\n\s\s\s\s}\sBREAKtest\n\s\s\s\sset\sres\s[list\s[catch\s{exec\s[info\snameofexecutable]\nBREAKtest}\smsg]\s$msg]\n\s\s\s\sremoveFile\sBREAKtest\n\s\s\s\sset\sres\n\n----\sResult\swas:\n1\s{couldn't\sread\sfile\s"BREAKtest":\sno\ssuch\sfile\sor\ndirectory}\n----\sResult\sshould\shave\sbeen\s(exact\smatching):\n1\s{invoked\s"break"\soutside\sof\sa\sloop\n\s\s\s\swhile\sexecuting\n"break"\n\s\s\s\s(file\s"BREAKtest"\sline\s4)}\n====\sbasic-46.3\sFAILED\n\n\n====\sbasic-46.4\sTcl_AllowExceptions:\sexception\sreturn\nnot\sallowed\sFAILED\n====\sContents\sof\stest\scase:\n\n\s\s\s\smakeFile\s{\n\s\s\s\s\s\s\s\sfoo\s[set\sa\s1]\s[break]\n\s\s\s\s}\sBREAKtest\n\s\s\s\sset\sres\s[list\s[catch\s{exec\s[info\snameofexecutable]\nBREAKtest}\smsg]\s$msg]\n\s\s\s\sremoveFile\sBREAKtest\n\s\s\s\sset\sres\n\n----\sResult\swas:\n1\s{couldn't\sread\sfile\s"BREAKtest":\sno\ssuch\sfile\sor\ndirectory}\n----\sResult\sshould\shave\sbeen\s(exact\smatching):\n1\s{invoked\s"break"\soutside\sof\sa\sloop\n\s\s\s\swhile\sexecuting\n"break"\n\s\s\s\sinvoked\sfrom\swithin\n"foo\s[set\sa\s1]\s[break]"\n\s\s\s\s(file\s"BREAKtest"\sline\s2)}\n====\sbasic-46.4\sFAILED\n\n\n====\sbasic-46.5\sTcl_AllowExceptions:\sexception\sreturn\nnot\sallowed\sFAILED\n====\sContents\sof\stest\scase:\n\n\s\s\s\smakeFile\s{\n\s\s\s\s\s\s\s\sreturn\s-code\sreturn\n\s\s\s\s}\sBREAKtest\n\s\s\s\sset\sres\s[list\s[catch\s{exec\s[info\snameofexecutable]\nBREAKtest}\smsg]\s$msg]\n\s\s\s\sremoveFile\sBREAKtest\n\s\s\s\sset\sres\n\n----\sResult\swas:\n1\s{couldn't\sread\sfile\s"BREAKtest":\sno\ssuch\sfile\sor\ndirectory}\n----\sResult\sshould\shave\sbeen\s(exact\smatching):\n1\s{command\sreturned\sbad\scode:\s2\n\s\s\s\swhile\sexecuting\n"return\s-code\sreturn"\n\s\s\s\s(file\s"BREAKtest"\sline\s2)}\n====\sbasic-46.5\sFAILED\n
J foundin obsolete:\s8.4a5
J priority 5\sMedium
J resolution None
J status Open
J submitter dgp
J subsystem 45.\sParsing\sand\sEval
J title basic.test\sneeds\swrite\saccess\sto\s.
J type Bug
K 575817ffffffffffffffffffffffffffffffffff
U dgp
Z 9b4d8e8942def9d93baae4ab379f9a2c