Commit graph

770 commits

Author SHA1 Message Date
David Chisnall
9895dac736 Remove an NSLog() line I left in the test by mistake.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33638 72102866-910b-0410-8b05-ffd578937521
2011-07-26 18:42:13 +00:00
David Chisnall
c1cca9a336 Added NSJSONSerialization (10.7) implementation. The code path reading from an NSInputStream is not well tested - please try and break it!
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33631 72102866-910b-0410-8b05-ffd578937521
2011-07-25 15:50:51 +00:00
David Chisnall
d2ea054c26 Lots of little fixes to make -base compile with -Werror (now builds without warnings).
Richard: I'm unsure about three of these, which were fixes in memset() calls in:
- NSConcreteMapTable.m
- NSConcreteHashTable.m
- Additions/NSData+GNUstepBase.m

Please can you check them?  I think they are intended to zero the entire object
(rather than the first word), but the lack of comments makes me unsure.

Most changes were just tweaks to variable types.  I've also removed some dead code from NSInvocation.  This was small group of things that were marked for internal use only, but not actually referenced in the code anywhere.

Other improvements:

- NSArray / NSDictionary fixed up to use the 10.7 (ARC-friendly) prototypes.
- getObjects:andKeys: implemented for NSDictionary (10.5 method)
- NSPointerArray and NSHashTable now properly support weak objects.
- Tests for weak objects in collections.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33621 72102866-910b-0410-8b05-ffd578937521
2011-07-24 13:09:22 +00:00
David Chisnall
bc37adfb0c Add support (and test) for weak keys and values in NSMapTable. This support should work in GC mode. It also works if the runtime supports ARC, even if the compiler does not use this support.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33617 72102866-910b-0410-8b05-ffd578937521
2011-07-23 16:16:01 +00:00
David Chisnall
d9fda65728 Added NSRegularExpressionSearch (10.7) support to NSString.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33600 72102866-910b-0410-8b05-ffd578937521
2011-07-21 13:17:27 +00:00
David Chisnall
72b55444fb Added some tests for lazy allocated thread behaviour.
These show deviation from OS X behaviour (the first test passes by accident - it's actually doing the wrong thing in two different ways that cancel each other out).



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33520 72102866-910b-0410-8b05-ffd578937521
2011-07-11 14:07:16 +00:00
David Chisnall
91b513bfa8 Added test for creating class / adding methods. Based on Wolfgang Lux' test example.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32997 72102866-910b-0410-8b05-ffd578937521
2011-05-07 09:50:42 +00:00
Richard Frith-MacDonald
8f17e19b0d tweak to handle concurrency failure better.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32974 72102866-910b-0410-8b05-ffd578937521
2011-05-03 19:39:08 +00:00
David Chisnall
2c900743bd Made initialize test abort if it deadlocks for too long.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32950 72102866-910b-0410-8b05-ffd578937521
2011-04-29 14:59:24 +00:00
David Chisnall
7446414424 On closer inspection, the runtimes / compilers were doing the right thing - the type encoding provided in Apple's documentation was wrong.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32945 72102866-910b-0410-8b05-ffd578937521
2011-04-29 11:11:37 +00:00
David Chisnall
cb845565ba Added test for property attribute encodings. These are based on the Apple documentation here:
http://developer.apple.com/library/mac/#documentation/Cocoa/Conceptual/ObjCRuntimeGuide/Articles/ocrtPropertyIntrospection.html

Several of the things in the documentation are wrong:

- The encoding of structures does not include the field names in property
  encodings.  This encoding format appears to only be used in ivars (yes, it is
  frustrating)

- Apple appears to encode long as q on LP64 platforms.  This is probably a
  compiler bug.

- The N flag is not set for non-atomic properties.  This appears to be a clang
  bug, since the non-atomic flag is not set in the AST - both the Mac and
  GNUstep runtimes generate the same wrong result.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32944 72102866-910b-0410-8b05-ffd578937521
2011-04-29 10:50:00 +00:00
David Chisnall
d17fe8eab0 Added test for correct behaviour of +initialize in a multithreaded environment.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32912 72102866-910b-0410-8b05-ffd578937521
2011-04-20 09:41:12 +00:00
Richard Frith-MacDonald
b1745e7d9d Minor fixups for release ... mostly avoid failed testcases.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32837 72102866-910b-0410-8b05-ffd578937521
2011-04-12 05:41:53 +00:00
Richard Frith-MacDonald
619fd8cfba add base.make for flags to use when base is not yet installed.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32826 72102866-910b-0410-8b05-ffd578937521
2011-04-10 13:59:50 +00:00
Richard Frith-MacDonald
fd0856ff58 fix missing include directory
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32824 72102866-910b-0410-8b05-ffd578937521
2011-04-10 07:06:03 +00:00
Nicola Pero
019128b76a Updated comments for Test GNUmakefile
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32816 72102866-910b-0410-8b05-ffd578937521
2011-04-09 00:00:21 +00:00
Nicola Pero
f6e67a968a Removed unused variable in makefile
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32809 72102866-910b-0410-8b05-ffd578937521
2011-04-08 18:36:47 +00:00
Nicola Pero
aafba32c09 Minor tidyups in Tests makefile
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32808 72102866-910b-0410-8b05-ffd578937521
2011-04-08 18:28:35 +00:00
Richard Frith-MacDonald
d3c38af54b Apply patch for bug #32899
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32794 72102866-910b-0410-8b05-ffd578937521
2011-04-07 05:09:08 +00:00
Wolfgang Lux
41bc49cedf Fix bogus byte swap code for big-endian hosts.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32785 72102866-910b-0410-8b05-ffd578937521
2011-04-05 18:47:06 +00:00
Richard Frith-MacDonald
92ac6e50d4 fix byte order error
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32782 72102866-910b-0410-8b05-ffd578937521
2011-04-05 13:08:16 +00:00
Richard Frith-MacDonald
ee798647d7 fixup for signedness ... charValue always returns a signed char
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32777 72102866-910b-0410-8b05-ffd578937521
2011-04-04 16:35:20 +00:00
Richard Frith-MacDonald
d9d0d1b6fd portability bugfixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32769 72102866-910b-0410-8b05-ffd578937521
2011-04-04 10:57:49 +00:00
Richard Frith-MacDonald
267fc9c251 GC fixup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32765 72102866-910b-0410-8b05-ffd578937521
2011-04-03 08:20:57 +00:00
Richard Frith-MacDonald
449cc10f91 fix ifdefs
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32723 72102866-910b-0410-8b05-ffd578937521
2011-03-28 13:57:27 +00:00
Richard Frith-MacDonald
a8d17e5179 improved use of developer testing conditionals
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32719 72102866-910b-0410-8b05-ffd578937521
2011-03-28 13:22:57 +00:00
Richard Frith-MacDonald
35ac5a084f make relative link test into a hope
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32696 72102866-910b-0410-8b05-ffd578937521
2011-03-24 05:40:57 +00:00
Richard Frith-MacDonald
dfd42af94f fix test of expansion of relative symlinks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32695 72102866-910b-0410-8b05-ffd578937521
2011-03-24 05:17:47 +00:00
Richard Frith-MacDonald
2ddc940445 cleanup to avoid tests which won't work on most systems
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32687 72102866-910b-0410-8b05-ffd578937521
2011-03-22 19:59:36 +00:00
Richard Frith-MacDonald
603e2f2f08 tidied
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32686 72102866-910b-0410-8b05-ffd578937521
2011-03-22 19:47:10 +00:00
David Chisnall
ae273366e8 Test that we properly support Apple's silly EH semantics for ObjC++, and that we can turn them off if we don't need to be compatible with code that relies on them.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32672 72102866-910b-0410-8b05-ffd578937521
2011-03-21 18:30:18 +00:00
Riccardo Mottola
71aad7ebf3 added new test
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32670 72102866-910b-0410-8b05-ffd578937521
2011-03-21 18:15:37 +00:00
David Chisnall
d54a3d44fb Added test that makes sure that void* doesn't catch id. Currently crashes on OS X, but is a known bug.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32666 72102866-910b-0410-8b05-ffd578937521
2011-03-21 11:52:30 +00:00
Richard Frith-MacDonald
7d9c3baf64 increase timeout for slow machines
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32665 72102866-910b-0410-8b05-ffd578937521
2011-03-21 09:53:01 +00:00
David Chisnall
dbc38567b6 Added test for Apple-compatible unified exception model.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32661 72102866-910b-0410-8b05-ffd578937521
2011-03-20 22:06:44 +00:00
David Chisnall
8e3e6e008b Check that Foundation.h can be correctly imported into an ObjC++ program (i.e. we haven't used things like template or class as identifier names anywhere).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32636 72102866-910b-0410-8b05-ffd578937521
2011-03-17 15:27:00 +00:00
David Chisnall
cca58eed8f Added test to check that C++ constructors / destructors are called in the correct order when C++ 'objects' are ObjC ivars.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32635 72102866-910b-0410-8b05-ffd578937521
2011-03-17 15:26:09 +00:00
Richard Frith-MacDonald
85f25b0d57 remove unused files
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32621 72102866-910b-0410-8b05-ffd578937521
2011-03-16 17:05:09 +00:00
Richard Frith-MacDonald
050b475d6f check for failures
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32615 72102866-910b-0410-8b05-ffd578937521
2011-03-16 15:25:09 +00:00
Richard Frith-MacDonald
eed1840fd3 don't call pass directly
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32614 72102866-910b-0410-8b05-ffd578937521
2011-03-16 15:12:49 +00:00
Richard Frith-MacDonald
20f1317464 use standardised locale for testing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32606 72102866-910b-0410-8b05-ffd578937521
2011-03-16 14:01:09 +00:00
Richard Frith-MacDonald
8bea71efa9 fix am/pm issues and incorrect test
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32605 72102866-910b-0410-8b05-ffd578937521
2011-03-16 13:17:48 +00:00
Stefan Bidigaray
92ad4e23d1 Remove redundant tests.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32591 72102866-910b-0410-8b05-ffd578937521
2011-03-14 23:26:40 +00:00
Stefan Bidigaray
a489a4d175 Moved -getObjectValue:... test to NSLocale set (this method requires libicu for NSNumberFormatterBehavior10_4.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32590 72102866-910b-0410-8b05-ffd578937521
2011-03-14 23:17:32 +00:00
Richard Frith-MacDonald
ed8ac51207 fixup for mingw to be able to find local copy of base library
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32577 72102866-910b-0410-8b05-ffd578937521
2011-03-14 14:28:18 +00:00
Richard Frith-MacDonald
257db34f47 tweak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32569 72102866-910b-0410-8b05-ffd578937521
2011-03-14 09:56:46 +00:00
Richard Frith-MacDonald
09bd40334c simplify header layout
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32545 72102866-910b-0410-8b05-ffd578937521
2011-03-13 12:52:37 +00:00
Richard Frith-MacDonald
fae2b696cd improve testing
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32544 72102866-910b-0410-8b05-ffd578937521
2011-03-13 12:14:40 +00:00
Richard Frith-MacDonald
a0cea8389d remove obsolete tests
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32490 72102866-910b-0410-8b05-ffd578937521
2011-03-07 17:49:41 +00:00
Richard Frith-MacDonald
a34befb2f5 link expansion checks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32469 72102866-910b-0410-8b05-ffd578937521
2011-03-06 05:49:36 +00:00
Richard Frith-MacDonald
3830644de3 tests conditional on gc
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32464 72102866-910b-0410-8b05-ffd578937521
2011-03-05 17:41:38 +00:00
Richard Frith-MacDonald
83052c50ee tweak for mswindows
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32458 72102866-910b-0410-8b05-ffd578937521
2011-03-05 14:47:58 +00:00
Stefan Bidigaray
d0134f9b15 Set test as hopeful.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32452 72102866-910b-0410-8b05-ffd578937521
2011-03-04 20:10:42 +00:00
Richard Frith-MacDonald
f56cc75a10 Updated to pass on OSX
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32449 72102866-910b-0410-8b05-ffd578937521
2011-03-04 09:24:06 +00:00
Richard Frith-MacDonald
4117586242 tweak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32448 72102866-910b-0410-8b05-ffd578937521
2011-03-04 09:16:40 +00:00
Richard Frith-MacDonald
8e1f83cd48 Fix test ordering as reported by Philippe
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32447 72102866-910b-0410-8b05-ffd578937521
2011-03-04 08:56:10 +00:00
Stefan Bidigaray
c6ff18d885 Modified NSNumberFormatter tests. Still trying to figure out what goes on here.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32445 72102866-910b-0410-8b05-ffd578937521
2011-03-04 00:48:32 +00:00
Richard Frith-MacDonald
e0a2640d15 re-introduce thread pool
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32442 72102866-910b-0410-8b05-ffd578937521
2011-03-03 15:14:29 +00:00
Richard Frith-MacDonald
db78d4cd8e Add support for 'concurrent' NSOperations, but remove the pools of theads and
and run normal operations each in their own until we re-instate pools.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32440 72102866-910b-0410-8b05-ffd578937521
2011-03-03 10:56:47 +00:00
Riccardo Mottola
08d2cd3313 Add test cor checking leading zeroes in fractional part
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32433 72102866-910b-0410-8b05-ffd578937521
2011-03-02 12:09:23 +00:00
Richard Frith-MacDonald
7cf4d2bb21 garbage collection tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32425 72102866-910b-0410-8b05-ffd578937521
2011-03-01 10:51:42 +00:00
Richard Frith-MacDonald
36369bf334 covert to hope
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32424 72102866-910b-0410-8b05-ffd578937521
2011-03-01 10:28:24 +00:00
Richard Frith-MacDonald
cf715cb8f6 tweak cleanup
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32422 72102866-910b-0410-8b05-ffd578937521
2011-03-01 09:31:26 +00:00
Richard Frith-MacDonald
68ba47afe2 GC updates
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32420 72102866-910b-0410-8b05-ffd578937521
2011-02-28 22:11:41 +00:00
Richard Frith-MacDonald
8739900297 skip until this doesnt hang
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32418 72102866-910b-0410-8b05-ffd578937521
2011-02-28 19:57:11 +00:00
Richard Frith-MacDonald
23fd98d4e0 add test for concurrent operations
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32416 72102866-910b-0410-8b05-ffd578937521
2011-02-28 18:28:19 +00:00
Richard Frith-MacDonald
06a4475988 fix typo
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32402 72102866-910b-0410-8b05-ffd578937521
2011-02-28 10:13:55 +00:00
Richard Frith-MacDonald
862fd47a3f use gnustep-make for this makefile
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32400 72102866-910b-0410-8b05-ffd578937521
2011-02-28 10:09:27 +00:00
Richard Frith-MacDonald
ee16b27a43 check dependency removal
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32399 72102866-910b-0410-8b05-ffd578937521
2011-02-28 07:01:11 +00:00
Richard Frith-MacDonald
74472f9089 fix missing target
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32383 72102866-910b-0410-8b05-ffd578937521
2011-02-26 21:37:16 +00:00
Richard Frith-MacDonald
96318514aa more numeric comparisn checks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32374 72102866-910b-0410-8b05-ffd578937521
2011-02-26 06:03:43 +00:00
Richard Frith-MacDonald
f24bf54a99 a couple more tests
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32373 72102866-910b-0410-8b05-ffd578937521
2011-02-26 05:42:36 +00:00
Stefan Bidigaray
70fd2deb0c Fix a test.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32372 72102866-910b-0410-8b05-ffd578937521
2011-02-25 22:09:20 +00:00
Stefan Bidigaray
c8a76ba8a2 Added a few more tests to test NSNumberFormatter behavior.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32371 72102866-910b-0410-8b05-ffd578937521
2011-02-25 21:41:03 +00:00
Richard Frith-MacDonald
5798a1ea22 fix bad string constants
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32370 72102866-910b-0410-8b05-ffd578937521
2011-02-25 19:41:38 +00:00
Richard Frith-MacDonald
21fd0715e5 make it easier to run testsuite
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32365 72102866-910b-0410-8b05-ffd578937521
2011-02-25 10:31:17 +00:00
Richard Frith-MacDonald
25c8c438dd Added tests with more numeric types
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32362 72102866-910b-0410-8b05-ffd578937521
2011-02-25 00:41:34 +00:00
Richard Frith-MacDonald
841e43be00 fix NaN tests
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32360 72102866-910b-0410-8b05-ffd578937521
2011-02-25 00:16:19 +00:00
Richard Frith-MacDonald
df585bb114 corrected NSNumber tests
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32359 72102866-910b-0410-8b05-ffd578937521
2011-02-25 00:11:35 +00:00
Riccardo Mottola
23237be932 some NaN and zero number checks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32358 72102866-910b-0410-8b05-ffd578937521
2011-02-24 21:51:37 +00:00
Riccardo Mottola
f822d213e1 some NaN and zero number checks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32357 72102866-910b-0410-8b05-ffd578937521
2011-02-24 21:51:26 +00:00
Richard Frith-MacDonald
13b140a5be Fixup bad function calls.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32356 72102866-910b-0410-8b05-ffd578937521
2011-02-24 18:53:31 +00:00
Richard Frith-MacDonald
e6dc5a58b6 Important change to the START_SET and END_SET macros to stop their use
being confusing.  They now both take a simple C-string argument which
names the set, and the macros check that each end matches a start of
the same name.  Since tis means that a START_SET no longer takes an
argument sayng whether or notthe set is to be skipped, we now have a
SKIP macro to be used inside a set to skip to the end of it.  This
is actually more versatile as we can have multiple SKIP macros in the
same set, each providing a different reason for the set being skipped.
Also removed a few obsolete/unused functions and macros.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32355 72102866-910b-0410-8b05-ffd578937521
2011-02-24 16:26:01 +00:00
David Chisnall
c56494c61d Move the Testing.h include out of the #ifdef so the unsupported() call works.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32343 72102866-910b-0410-8b05-ffd578937521
2011-02-24 12:11:11 +00:00
David Chisnall
8ee8fdfbd4 Skip GSXML test if GS_USE_LIBXML is not defined. Saves the test from crashing with a linker error
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32342 72102866-910b-0410-8b05-ffd578937521
2011-02-24 12:09:11 +00:00
David Chisnall
bb7e267194 Silence some warnings in the test.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32341 72102866-910b-0410-8b05-ffd578937521
2011-02-23 23:49:08 +00:00
David Chisnall
d03e9a18b3 Added test for properties.
Richard: I've probably put this in a slightly silly place - feel free to move it.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32340 72102866-910b-0410-8b05-ffd578937521
2011-02-23 23:00:56 +00:00
David Chisnall
c0c5b77bc8 Made the last test a hope - it definitely fails with old versions of the GCC runtime.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32338 72102866-910b-0410-8b05-ffd578937521
2011-02-23 18:42:15 +00:00
David Chisnall
53f5c4ec97 Added test that the runtime allows us to throw instances of objects that have not been properly initialised.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32337 72102866-910b-0410-8b05-ffd578937521
2011-02-23 18:39:26 +00:00
Richard Frith-MacDonald
9f593f6b8e Add TestInfo markers
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32335 72102866-910b-0410-8b05-ffd578937521
2011-02-23 18:34:39 +00:00
David Chisnall
da50b15198 Added tests for ensuring that blocks work as NSObject subclasses. I'm not sure if GNUstep Make is correctly adding -fblocks yet - if it isn't, you can run the test with:
CC=clang ADDITIONAL_OBJCFLAGS='-fblocks' gnustep-tests NSBlock

(I have -make configured to use GCC, and just override this explicitly when building, because doing it the other way around breaks building with GCC)



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32333 72102866-910b-0410-8b05-ffd578937521
2011-02-23 18:27:49 +00:00
Richard Frith-MacDonald
ae10d86ca4 Locale fix provided by Philippe Roussel
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32330 72102866-910b-0410-8b05-ffd578937521
2011-02-23 16:03:52 +00:00
Richard Frith-MacDonald
9550a5415b Path standardisation tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32328 72102866-910b-0410-8b05-ffd578937521
2011-02-23 14:59:06 +00:00
Richard Frith-MacDonald
c11dbf7f6a Fix tests tobe hopes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32326 72102866-910b-0410-8b05-ffd578937521
2011-02-23 12:32:20 +00:00
David Chisnall
29c6646667 Added some tests that check that the runtime is doing the right thing with root
classes and metaclasses (or, at least, the same thing that the NeXT runtime does).



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32325 72102866-910b-0410-8b05-ffd578937521
2011-02-23 12:23:00 +00:00
Richard Frith-MacDonald
654c8497ff morge tests into single file
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32322 72102866-910b-0410-8b05-ffd578937521
2011-02-23 09:51:32 +00:00
Richard Frith-MacDonald
caf02fa104 tweak tio pass in osx
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32320 72102866-910b-0410-8b05-ffd578937521
2011-02-23 09:38:56 +00:00
Richard Frith-MacDonald
2b31f0d340 tweak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32319 72102866-910b-0410-8b05-ffd578937521
2011-02-23 09:32:38 +00:00
Richard Frith-MacDonald
7dc2d9558d fix include file
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32318 72102866-910b-0410-8b05-ffd578937521
2011-02-23 09:26:56 +00:00
Richard Frith-MacDonald
345a7ae0d7 add missing headers
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32315 72102866-910b-0410-8b05-ffd578937521
2011-02-23 08:18:42 +00:00
Richard Frith-MacDonald
b31bb7383c Make locking checks more robust
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32314 72102866-910b-0410-8b05-ffd578937521
2011-02-23 08:08:22 +00:00
Richard Frith-MacDonald
d74421bb97 break for deadlock
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32312 72102866-910b-0410-8b05-ffd578937521
2011-02-23 07:53:20 +00:00
Richard Frith-MacDonald
c0dc22a42e fix typo
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32310 72102866-910b-0410-8b05-ffd578937521
2011-02-23 07:44:11 +00:00
Richard Frith-MacDonald
bb861d1e94 Move NSAffineTransform tests to base
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32308 72102866-910b-0410-8b05-ffd578937521
2011-02-22 23:08:59 +00:00
Richard Frith-MacDonald
88478a709f Tweak unsupported
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32299 72102866-910b-0410-8b05-ffd578937521
2011-02-22 15:25:11 +00:00
Richard Frith-MacDonald
cbb6d76966 tweak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32293 72102866-910b-0410-8b05-ffd578937521
2011-02-22 12:59:52 +00:00
Richard Frith-MacDonald
38670c0a08 OSX compatibility changes and other minor tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32279 72102866-910b-0410-8b05-ffd578937521
2011-02-22 07:05:36 +00:00
Richard Frith-MacDonald
ee2bbe4f71 more deletion tests
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32278 72102866-910b-0410-8b05-ffd578937521
2011-02-22 05:49:34 +00:00
Richard Frith-MacDonald
021c9eaf0e osx compatibility tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32277 72102866-910b-0410-8b05-ffd578937521
2011-02-22 05:41:51 +00:00
Richard Frith-MacDonald
279239cb2a add a couple of symlink tests
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32276 72102866-910b-0410-8b05-ffd578937521
2011-02-22 05:11:19 +00:00
Richard Frith-MacDonald
e383fd8acf add some behavior tests
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32261 72102866-910b-0410-8b05-ffd578937521
2011-02-21 12:43:57 +00:00
Richard Frith-MacDonald
e37f70e07d fix test error
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32252 72102866-910b-0410-8b05-ffd578937521
2011-02-20 20:13:01 +00:00
Richard Frith-MacDonald
8bbfbec7b5 avoid crash with libobjc2. add comment about OSX inconsistency.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32250 72102866-910b-0410-8b05-ffd578937521
2011-02-20 20:02:24 +00:00
Richard Frith-MacDonald
474a12b708 minor cleanups
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32234 72102866-910b-0410-8b05-ffd578937521
2011-02-19 19:42:42 +00:00
Richard Frith-MacDonald
de088f97a4 fix faulty test
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32217 72102866-910b-0410-8b05-ffd578937521
2011-02-19 06:15:34 +00:00
Riccardo Mottola
e3d0cb531f simple getobjectValue test
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32212 72102866-910b-0410-8b05-ffd578937521
2011-02-19 00:38:00 +00:00
Richard Frith-MacDonald
f955681fa6 fix include order error
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32203 72102866-910b-0410-8b05-ffd578937521
2011-02-18 11:48:28 +00:00
Richard Frith-MacDonald
b2d820c72c tweak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32199 72102866-910b-0410-8b05-ffd578937521
2011-02-17 17:54:50 +00:00
Richard Frith-MacDonald
f6f93c3c34 add simple NaN tests
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32198 72102866-910b-0410-8b05-ffd578937521
2011-02-17 17:50:48 +00:00
Richard Frith-MacDonald
0e02133729 import testsuite
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32187 72102866-910b-0410-8b05-ffd578937521
2011-02-16 08:21:17 +00:00