mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-23 22:33:28 +00:00
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:
parent
ba43ad18a8
commit
708b252f4d
2 changed files with 8 additions and 3 deletions
|
@ -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:
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue