discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Adopt a platform today!


From: Fred Kiefer
Subject: Re: Adopt a platform today!
Date: Sat, 19 Feb 2011 16:10:18 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.1.16) Gecko/20101125 SUSE/3.0.11 Thunderbird/3.0.11

Without ICU installed I get the following results from the base test
suite on an OpenSuse 11.3 64-bit system. (GNUstep freshly from SVN) I am
using gcc 4.5.0 and the libobjc that comes along with it:

   5456 Passed tests
     34 Failed tests
      5 Skipped sets
      1 Dashed hope

The first fail is this one:

base/NSBundle/general.m:
Failed test:     general.m:24 ... -principalClass returns NSObject for
the +bundleForLibrary:gnustep-base

Running the NSBundle tests separately gives the following log file:

 Compiling file general.m ...
general.m: In function ‘main’:
general.m:23:3: warning: cast from pointer to integer of different size
general.m:23:3: warning: comparison between pointer and integer
general.m:32:3: warning: cast from pointer to integer of different size
general.m:32:3: warning: comparison between pointer and integer
general.m:35:3: warning: cast from pointer to integer of different size
general.m:35:3: warning: comparison between pointer and integer
general.m:68:3: warning: cast from pointer to integer of different size
general.m:68:3: warning: comparison between pointer and integer
general.m:73:3: warning: cast from pointer to integer of different size
general.m:73:3: warning: comparison between pointer and integer
 Linking test_tool general ...
Running base/NSBundle/general.m...
This is gnustep-make 2.4.0. Type 'gmake print-gnustep-make-help' for help.
Passed test:     +bundleForLibrary: makes a bundle for us
Failed test:     general.m:24 ... -principalClass returns NSObject for
the +bundleForLibrary:gnustep-base

This looks like a 64 bit issue and I would say it is caused by the PASS
macros missing a few brackets. In Testing.h we have:

     _cond = (int) expression; \

Which definitely should be

     _cond = (int)(expression); \

But why are we using the local copy at all?
All the other macros in that file look a bit fragile as well.

Cheers
Fred




reply via email to

[Prev in Thread] Current Thread [Next in Thread]