.
D 2007-01-19T15:48:43
J assignee andreas_kupries
J cmimetype text/plain
J comment built\son\ssparc\ssolaris\s9,\ssun\sc\scompiler.\n\ncompiled\swith\n\s./configure\s\s--prefix=/tmp/tcl8414\s--enable-shared\s--enable-symbols\s--enable-stubs\s--enable-64bit\s--enable-threads\n\nunixInit.test\n\n====\sunixInit-1.2\sinitialisation:\sstandard\schannel\stype\sdeduction\sFAILED\n====\sContents\sof\stest\scase:\n\n\s\s\s\s#\spipe1\sis\sa\sconnection\sto\sa\sserver\sthat\sreports\swhat\sport\sit\n\s\s\s\s#\sstarts\son,\sand\sdelivers\sa\sconstant\sstring\sto\sthe\sfirst\sclient\sto\n\s\s\s\s#\sconnect\sto\sthat\sport\sbefore\sexiting.\n\s\s\s\sset\spipe1\s[open\s"|[list\s[interpreter]]"\sr+]\n\s\s\s\sputs\s$pipe1\s{\n\s\s\s\s\s\s\s\sproc\saccept\s{channel\shost\sport}\s{\n\s\s\s\s\s\s\s\s\s\s\s\sputs\s$channel\s{puts\s[fconfigure\sstdin\s-peername];\sexit}\n\s\s\s\s\s\s\s\s\s\s\s\sclose\s$channel\n\s\s\s\s\s\s\s\s\s\s\s\sexit\n\s\s\s\s\s\s\s\s}\n\s\s\s\s\s\s\s\sputs\s[fconfigure\s[socket\s-server\saccept\s0]\s-sockname]\n\s\s\s\s\s\s\s\svwait\sforever\s\s}\n\s\s\s\s#\sNote\sthe\sbackslash\sabove;\sthis\sis\simportant\sto\smake\ssure\sthat\sthe\n\s\s\s\s#\swhole\sstring\sis\sread\sbefore\san\s[exit]\scan\shappen...\n\s\s\s\sflush\s$pipe1\n\s\s\s\sset\sport\s[lindex\s[gets\s$pipe1]\s2]\n\s\s\s\sset\ssock\s[socket\slocalhost\s$port]\n\s\s\s\s#\spipe2\sis\sa\sconnection\sto\sa\sTcl\sinterpreter\sthat\stakes\sits\sorders\n\s\s\s\s#\sfrom\sthe\ssocket\swe\shand\sit\s(i.e.\sthe\sserver\swe\screate\sabove.)\n\s\s\s\s#\sThese\sorders\swill\stell\sit\sto\sprint\sout\sthe\sdetails\sabout\sthe\n\s\s\s\s#\ssocket\sit\sis\staking\sinstructions\sfrom,\shopefully\sidentifying\sit\n\s\s\s\s#\sas\sa\ssocket.\s\sWhich\sis\swhat\sthis\stest\sis\sall\sabout.\n\s\s\s\sset\spipe2\s[open\s"|[list\s[interpreter]\s<@$sock]"\sr]\n\s\s\s\sset\sresult\s[gets\s$pipe2]\n\n\s\s\s\s#\sClear\sany\spending\sdata;\sstops\scertain\skinds\sof\s(non-important)\serrors\n\s\s\s\sfconfigure\s$pipe1\s-blocking\s0;\sgets\s$pipe1\n\s\s\s\sfconfigure\s$pipe2\s-blocking\s0;\sgets\s$pipe2\n\n\s\s\s\s#\sClose\sthe\spipes\sand\sthe\ssocket.\n\s\s\s\sclose\s$pipe2\n\s\s\s\sclose\s$pipe1\n\s\s\s\scatch\s{close\s$sock}\n\n\s\s\s\s#\sCan't\suse\snormal\scomparison,\sas\shostname\svaries\sdue\sto\ssome\n\s\s\s\s#\sinstallations\shaving\sa\smessed\sup\s/etc/hosts\sfile.\n\s\s\s\sif\s{\n\s\s\s\s\s\s\s\s[string\sequal\s127.0.0.1\s[lindex\s$result\s0]]\s&&\n\s\s\s\s\s\s\s\s[string\sequal\s$port\s\s\s\s\s[lindex\s$result\s2]]\n\s\s\s\s}\sthen\s{\n\s\s\s\s\s\s\s\ssubst\s"OK"\n\s\s\s\s}\selse\s{\n\s\s\s\s\s\s\s\ssubst\s"Expected:\s`[list\s127.0.0.1\slocalhost\s$port]',\sGot\s`$result'"\n\s\s\s\s}\n\n----\sResult\swas:\nExpected:\s`127.0.0.1\slocalhost\s41536',\sGot\s`0.0.0.0\slocalhost\s41536'\n----\sResult\sshould\shave\sbeen\s(exact\smatching):\nOK\n====\sunixInit-1.2\sFAILED\n\n
J foundin obsolete:\s8.4.14
J is_private 0
J priority 5\sMedium
J resolution None
J status Open
J submitter lvirden
J subsystem 27.\sChannel\sTypes
J title unixInit.test\sunixInit-1.2\sfail\sSolaris\s9
J type Bug
K 1639656fffffffffffffffffffffffffffffffff
U lvirden
Z 674b40bf1adb045f515c743201cebdf5