mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
make +initialize test a hope since it's not actually important
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34677 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
4c69dafed4
commit
2b605b9df5
1 changed files with 9 additions and 0 deletions
|
@ -217,9 +217,18 @@ int main(void)
|
|||
|
||||
/* Make sure that when a class without its own +initialise is first used,
|
||||
* the inherited +initialize is called instead.
|
||||
* This is a traditional feature of the Apple runtime, which was 'improved'
|
||||
* by the GNU runtime (which actually checks to see if +initialize is
|
||||
* implemented before trying to call it). Good software should not depend
|
||||
* on either behavior ... which means all good software should protext its
|
||||
* +initialize code so that being called multiple times is OK.
|
||||
* New GNU/GNUstep runtimes adopt the old Apple behavior purely for
|
||||
* consistency.
|
||||
*/
|
||||
[Init1 class];
|
||||
testHopeful = YES;
|
||||
PASS(2 == initCount, "inherited +initialize is called automatically");
|
||||
testHopeful = NO;
|
||||
|
||||
#if defined(SIGALRM)
|
||||
/* End in a signal if the concurrency test deadlocks.
|
||||
|
|
Loading…
Reference in a new issue