fix testPassed flag setup

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@32313 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2011-02-23 08:04:55 +00:00
parent ba43ad18a8
commit 708b252f4d
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2011-01-23 Richard Frith-Macdonald <rfm@gnu.org>
* Testing.h: Fix excess args to printf and incorrect setting of the
testPassed flag.
2011-01-22 Richard Frith-Macdonald <rfm@gnu.org>
* gnustep-tests.in:

View file

@ -76,12 +76,12 @@ static NSException *testRaised __attribute__((unused)) = nil;
* the expression used as its first argument might cause an exception
* in any context where that might be a problem.
*/
static void pass(int testPassed, const char *format, ...) __attribute__((unused)) __attribute__ ((format(printf, 2, 3)));
static void pass(int testPassed, const char *format, ...)
static void pass(int passed, const char *format, ...) __attribute__((unused)) __attribute__ ((format(printf, 2, 3)));
static void pass(int passed, const char *format, ...)
{
va_list args;
va_start(args, format);
if (testPassed)
if (passed)
{
fprintf(stderr, "Passed test: ");
testPassed = YES;