From: SourceForge.net <no...@so...> - 2007-12-12 16:43:55
|
Bugs item #1847981, was opened at 2007-12-10 11:30 Message generated for change (Comment added) made by vapier You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=103382&aid=1847981&group_id=3382 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Testcases Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: George Kraft IV (gk4) Assigned to: Nobody/Anonymous (nobody) Summary: 559 tests incorrectly exit with negative number Initial Comment: 599 LTP tests found to incorrectly exit with a negative number. All C code should exit with 0 (success), 1 (failure), or some positive integer (undefined); however, a negative number should never be used because it gets masked and therefore is unpredictable. http://www.opengroup.org/onlinepubs/000095399/functions/exit.html ---------------------------------------------------------------------- Comment By: Mike Frysinger (vapier) Date: 2007-12-12 11:43 Message: Logged In: YES user_id=114429 Originator: NO actually, it's the exact opposite of unpredictable ... the mask is specifically known, so as long as the negative number is small, the value returned to the shell will always be usable as non-zero (status & 0377) ---------------------------------------------------------------------- Comment By: Subrata (subrata_modak) Date: 2007-12-12 05:53 Message: Logged In: YES user_id=1737361 Originator: NO Will look in to this. Thanks. --Subrata ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=103382&aid=1847981&group_id=3382 |