Skip to content
Tcl Source Code Artifact [9eedc1a277]
Login

Artifact [9eedc1a277]

Artifact 9eedc1a2775a261de160b1a2261de01f61cd2ab6:

Ticket change [9eedc1a277] - New ticket [767676ffffffffff|767676ffff] <i>Patch for failing tests</i>. by hgiese on 2003-07-08 11:08:32.
D 2003-07-08T11:08:32
J assignee andreas_kupries
J cmimetype text/plain
J comment Hello\sout\sthere,\non\sWin98\sthere\sare\s4\sfailing\stests\sin\swinpipe.test\s(not\nBorland\sspecific).\sThey\sall\sfollow\sthis\spattern:\n\n====\swinpipe-4.2\sTcl_WaitPid:\sreturn\sof\sexception\ncodes,\sSIGFPE\sFAILED\n====\sContents\sof\stest\scase:\n\n\s\s\s\sset\sf\s[open\s"|[tcltest::interpreter]"\sw+]\n\s\s\s\sset\spid\s[pid\s$f]\n\s\s\s\sputs\s$f\s"testexcept\sfloat_underflow"\n\s\s\s\sset\sstatus\s[catch\s{close\s$f}]\n\s\s\s\slist\s$status\s[expr\s{$pid\s==\s[lindex\s$::errorCode\n1]}]\s[lindex\s$::errorCode\s2]\n\n----\sResult\swas:\n1\s0\sSIGFPE\n----\sResult\sshould\shave\sbeen\s(exact\smatching):\n1\s1\sSIGFPE\n\nThe\sreason:\n-\sOn\sWin9x\sPIDs\sare\s*large*\svalues\s(like\s0xFFFFhhhh)\n-\sTclCleanupChildren()\s(in\stclpipe.c)\suses\nTclFormatInt()\sto\sconvert\sthe\sPID\sto\sa\sstring,\nresulting\sin\ssomething\slike\s-5432.\n-\s[pid\s...]\saparently\sreturns\san\sunsigned\sint\s(or\sits\nstring\sequivalent)\n-\sand\sthe\stest\son\sequality\sfails.\n\nThe\spatch\sproposes\sto\sdo\sinstead\s(see\sthe\sattached\sdiff\nfile)\n\n#ifdef\s__WIN32__\n\s\s\s\s\s\s\s\ssprintf(msg1,\s"%lu",\sresolvedPid);\n#else\n\s\s\s\s\s\s\s\sTclFormatInt(msg1,\s(long)\sresolvedPid);\n#endif\n\n(and\sthe\sequivalent\sfor\smsg2).\n\nI\sused\sa\sconditional\s__WIN32__,\showever\sit\sseems\sto\sme\nthat\son\s*any*\splatform\sthe\sPID\sshould\sbe\sconsidered\nunsigned,\sso\sIMHO\sthere\sis\sno\sneed\sfor\sa\sconditional.\nBest\sregards\nHelmut\sGiese
J foundin None
J priority 5\sMedium
J resolution None
J status Open
J submitter hgiese
J subsystem 25.\sChannel\sSystem
J title Patch\sfor\sfailing\stests
J type Patch
K 767676ffffffffffffffffffffffffffffffffff
U hgiese
Z 7df8b6ba3bad4550ebc31d7c51627e2c