From: SourceForge.net <no...@so...> - 2011-01-09 21:08:49
|
Bugs item #3153801, was opened at 2011-01-10 00:08 Message generated for change (Tracker Item Submitted) made by You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=1005444&aid=3153801&group_id=208375 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: None Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: randomaction () Assigned to: Nobody/Anonymous (nobody) Summary: test failure: cut_utils_compare_string Initial Comment: Cutter fails one of the self-tests when building for powerpc architecture on Debian [1] or Ubuntu [2]. The reason is that strcmp is assumed to return -1, 0, or 1. It is, however, not guaranteed. According to strcmp(3), "The strcmp() function compares the two strings s1 and s2. It returns an integer less than, equal to, or greater than zero if s1 is found, respectively, to be less than, to match, or be greater than s2." On powerpc, strcmp("a", "b") returns -2^24, and the test in test_compare_string() which compares result to -1 fails. Either the tests must be modified to assert that the result is positive/negative, or cut_utils_compare_string() modified to return -1, 0, or 1. [1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=599980 [2] https://launchpad.net/ubuntu/+source/cutter-testing-framework/1.1.3-1ubuntu1/+build/2137955 ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=1005444&aid=3153801&group_id=208375 |