.
D 2018-01-02T09:21:28.327
J assignee nobody
J closer nobody
J cmimetype text/plain
J comment I\sam\strying\sto\suse\sthe\s-returnCodes\soption\sto\stest\sthat\sa\scommand\sis\sreturning\sproper\serror\scodes\sif\sit\sis\sinvoked\swith\sincorrect\sarguments.\sHowever,\sif\sI\suse\s-returnCodes,\sI\scannot\suse\s-body\sto\sindicate\sthe\sscript.\r\n\r\nHere\sis\sa\ssmall\sscript\sthat\sillustrates\sthe\sissue:\r\n\r\n#\schktest.tcl\s--\r\n#\s\s\s\s\sCheck\sa\sstrange\sphenomenon\swith\stcltest\r\n#\r\nset\sversion\s[package\srequire\stcltest]\r\nputs\s"Version\stcltest:\s$version"\r\nnamespace\simport\s::tcltest::*\r\n\r\ntest\sreturncode-1.0\s"Return\san\serror\scode"\s{\r\n\s\s\s\sreturn\s-code\s1\s"Error"\r\n}\s-returnCodes\s1\r\n\r\ntest\sreturncode-1.1\s"Return\san\serror\scode"\s-body\s{\r\n\s\s\s\sreturn\s-code\s1\s"Error"\r\n}\s-returnCodes\s1\r\n\r\nThe\sfirst\stest\swill\ssucceed,\swhereas\sthe\ssecond\sdoes\snot:\r\n\r\nVersion\stcltest:\s2.4.0\r\n\r\n\r\n====\sreturncode-1.1\sReturn\san\serror\scode\sFAILED\r\n====\sContents\sof\stest\scase:\r\n\r\n\s\s\s\sreturn\s-code\s1\s"Error"\r\n\r\n----\sTest\sgenerated\sreturn\sexception;\sReturn\scode\swas:\s2\r\n----\sReturn\scode\sshould\shave\sbeen\sone\sof:\s1\r\n====\sreturncode-1.1\sFAILED
J foundin 2.4.0
J is_private 0
J login arjenmarkus
J priority 5\sMedium
J private_contact b4dd46eb62d921721c0aeef91d8d6e06aaeb6646
J resolution None
J severity Minor
J status Open
J submitter arjenmarkus
J subsystem 34.\stcltest\sPackage
J title Small\sbug\sregarding\s-body/-returnCodes
J type Bug
K 3cff6841c6b8b7af6f3d15dec74b626f557024ab
U arjenmarkus
Z c27f03d100542ee5469c21bbd4793c78