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 16:07 Message: Logged In: YES user_id=114429 Originator: NO in other words, unless the negative numbers you quote are "large", i dont think there's anything to fix here you could even state that "too large positive numbers" are also invalid. for example, returning 0x10000 is a positive number, but it is too large so the exit status is actually "0". ---------------------------------------------------------------------- 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 ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Ltp-list mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ltp-list
