.
D 2004-01-23T17:34:19
J assignee vincentdarley
J cmimetype text/plain
J comment \n====\sfCmd-28.12\sfile\slink:\scd\sinto\sa\slink\sFAILED\n====\sContents\sof\stest\scase:\n\n\s\s\s\scd\s[temporaryDirectory]\n\s\s\s\sfile\sdelete\s-force\sabc.link\n\s\s\s\sfile\slink\sabc.link\sabc.dir\n\s\s\s\sset\sorig\s[pwd]\n\s\s\s\scd\sabc.link\n\s\s\s\sset\sdir\s[pwd]\n\s\s\s\scd\s..\n\s\s\s\sset\sup\s[pwd]\n\s\s\s\scd\s$orig\n\s\s\s\s#\snow\s'$up'\sshould\sbe\seither\s$orig\sor\s[file\sdirname\nabc.dir],\n\s\s\s\s#\sdepending\son\swhether\s'cd'\sactually\smoves\sto\sthe\ndestination\n\s\s\s\s#\sof\sa\slink,\sor\ssimply\streats\sthe\slink\sas\sa\sdirectory.\n\s\s\s\s#\s(on\swindows\sthe\sformer,\son\sunix\sthe\slatter,\sI\nbelieve)\n\s\s\s\sif\s{([file\snormalize\s$up]\s!=\s[file\snormalize\n$orig])\s\s&&\s([file\snormalize\s$up]\s!=\s[file\snormalize\n[file\sdirname\sabc.dir]])}\s{\n\s\s\s\s\s\s\s\sset\sres\s"wrong\sdirectory\swith\s'cd\s$link\s;\scd\s..'"\n\s\s\s\s}\selse\s{\n\s\s\s\s\s\s\s\sset\sres\s"ok"\n\s\s\s\s}\n\s\s\s\scd\s[workingDirectory]\n\s\s\s\sset\sres\n\n----\sTest\sgenerated\serror;\sReturn\scode\swas:\s1\n----\sReturn\scode\sshould\shave\sbeen\sone\sof:\s0\s2\n----\serrorInfo:\scan't\sread\s"link":\sno\ssuch\svariable\n\s\s\s\swhile\sexecuting\n"set\sres\s"wrong\sdirectory\swith\s'cd\s$link\s;\scd\s..'""\n\s\s\s\sinvoked\sfrom\swithin\n"if\s{([file\snormalize\s$up]\s!=\s[file\snormalize\s$orig])\s\n&&\s([file\snormalize\s$up]\s!=\s[file\snormalize\s[file\ndirname\sabc.dir]])}\s{\n\s\s\s\s\s\s\s\sset\sres\s"wrong\sdirector..."\n\s\s\s\s("uplevel"\sbody\sline\s15)\n\s\s\s\sinvoked\sfrom\swithin\n"uplevel\s1\s$script"\n----\serrorCode:\sNONE\n====\sfCmd-28.12\sFAILED\n\nNote\sthe\stest\stries\sto\sread\sthe\svalue\nof\sa\svariable\s"$link"\sthat\sdoes\snot\nexist.\n
J foundin obsolete:\s8.5a0
J priority 5\sMedium
J resolution None
J status Open
J submitter dgp
J subsystem 37.\sFile\sSystem
J title fCmd-28.12:\sbroken\stest
J type Bug
K 883143ffffffffffffffffffffffffffffffffff
U dgp
Z 2320589ef913301a22e5587ef9894483