Commit graph

406 commits

Author SHA1 Message Date
rfm
f2d0bb8ab0 improve encoding tests
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34680 72102866-910b-0410-8b05-ffd578937521
2012-01-31 10:37:13 +00:00
rfm
ffb2895109 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
2012-01-31 08:07:20 +00:00
fredkiefer
5e8157165f * Tests/base/NSURLRequest/basic.m: Remove two astray @ characters.
These were blocking the file from compiling with gcc 4.6



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34672 72102866-910b-0410-8b05-ffd578937521
2012-01-30 23:20:40 +00:00
rfm
564bbf5fec add tests for new mutable request
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34620 72102866-910b-0410-8b05-ffd578937521
2012-01-24 09:40:29 +00:00
rfm
9cb78b1fa9 make test terminate on deadlock
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34461 72102866-910b-0410-8b05-ffd578937521
2012-01-08 16:10:46 +00:00
rfm
3fd1294c53 add thread safety test for initialize methods in different classes calling each other
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34460 72102866-910b-0410-8b05-ffd578937521
2012-01-08 15:57:43 +00:00
rfm
ccc4e39fc5 fix retain/release error
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34455 72102866-910b-0410-8b05-ffd578937521
2012-01-07 07:54:28 +00:00
rfm
39c4f035ba check setting nil document root.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34454 72102866-910b-0410-8b05-ffd578937521
2012-01-07 07:26:18 +00:00
rfm
51d002c196 sheck setting children to nil
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34453 72102866-910b-0410-8b05-ffd578937521
2012-01-07 07:10:45 +00:00
rfm
0c97209ee1 Add missed commit
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34452 72102866-910b-0410-8b05-ffd578937521
2012-01-07 07:02:14 +00:00
rfm
22eb9818a2 simple tests to set root of document
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34443 72102866-910b-0410-8b05-ffd578937521
2012-01-06 13:56:46 +00:00
rfm
4e6fcf1697 tweak
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34440 72102866-910b-0410-8b05-ffd578937521
2012-01-06 11:27:58 +00:00
rfm
de0e5ddf1f more child checks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34439 72102866-910b-0410-8b05-ffd578937521
2012-01-06 11:17:51 +00:00
rfm
7f03a31a28 some basic child handling tests
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34438 72102866-910b-0410-8b05-ffd578937521
2012-01-06 11:01:44 +00:00
rfm
3d91f00521 some basic setter/getter tests
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34437 72102866-910b-0410-8b05-ffd578937521
2012-01-06 09:46:50 +00:00
rfm
8042dedeeb add basic equality tests
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34436 72102866-910b-0410-8b05-ffd578937521
2012-01-06 09:24:51 +00:00
rfm
0681b25521 fix typo
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34426 72102866-910b-0410-8b05-ffd578937521
2012-01-05 20:46:51 +00:00
rfm
b9ce94a828 add trivial document tests
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34422 72102866-910b-0410-8b05-ffd578937521
2012-01-05 18:52:57 +00:00
rfm
c21cdfad4d 64bit printf tweaks
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34400 72102866-910b-0410-8b05-ffd578937521
2012-01-03 14:47:12 +00:00
gcasa
73273b7e75 2012-01-02 02:26-EST Gregory John Casamento <greg.casamento@gmail.com>
* Source/NSXMLNode.m>: Minor correction. Move setName out of 
	private category.
	* Tests/base/NSXMLNode/children.m: Update test.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34385 72102866-910b-0410-8b05-ffd578937521
2012-01-02 07:27:56 +00:00
gcasa
f2604e1d43 First cut at NSXMLDocument changes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34371 72102866-910b-0410-8b05-ffd578937521
2011-12-30 21:40:12 +00:00
rfm
f539c1aba4 add tests for removal of a default directly and via -setObject:forKey:
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34138 72102866-910b-0410-8b05-ffd578937521
2011-11-09 13:51:55 +00:00
rfm
c28138f3fa make base64 decoding more tolerant.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34128 72102866-910b-0410-8b05-ffd578937521
2011-11-07 08:15:00 +00:00
fredkiefer
8870a4331f * Tests/base/NSMutableString/basic.m: Add test for
replaceOccurrencesOfString:...range:


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34080 72102866-910b-0410-8b05-ffd578937521
2011-10-28 12:21:14 +00:00
rfm
83f4855240 fix method name
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34077 72102866-910b-0410-8b05-ffd578937521
2011-10-27 11:58:32 +00:00
rfm
e57d983f5e check bom values
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33985 72102866-910b-0410-8b05-ffd578937521
2011-10-14 12:58:52 +00:00
rfm
48fa5991ab Tweaks to support UTF-8 literal string encoding supported by more recent
compilers.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33972 72102866-910b-0410-8b05-ffd578937521
2011-10-12 14:28:44 +00:00
rfm
04c72fb364 fix to reture respnse for synchronous request.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33949 72102866-910b-0410-8b05-ffd578937521
2011-10-07 09:17:14 +00:00
rfm
4b08c19756 another nil arg test
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33938 72102866-910b-0410-8b05-ffd578937521
2011-10-04 05:33:40 +00:00
rfm
f3901684e8 another nil arg check
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33937 72102866-910b-0410-8b05-ffd578937521
2011-10-04 05:15:51 +00:00
rfm
574456553e test for exception
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33936 72102866-910b-0410-8b05-ffd578937521
2011-10-04 05:05:03 +00:00
rfm
6b8dc7ef6c Provisional IPv6 support added.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33933 72102866-910b-0410-8b05-ffd578937521
2011-10-03 16:03:19 +00:00
rfm
6efa3c983e Add a few OSX compatibility methods
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33929 72102866-910b-0410-8b05-ffd578937521
2011-10-02 11:17:49 +00:00
thebeing
a8bcdd81c1 Started working on NSXMLNode.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33927 72102866-910b-0410-8b05-ffd578937521
2011-10-01 18:43:29 +00:00
thebeing
4432b3d54d Add test for child de-/re-attachment behaviour in NSXML.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33920 72102866-910b-0410-8b05-ffd578937521
2011-10-01 00:05:27 +00:00
thebeing
3271491ce1 Add some initial tests for NSXMLNode (will only pass on OS X, marked testHopeful for now).
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33903 72102866-910b-0410-8b05-ffd578937521
2011-09-28 18:10:18 +00:00
rfm
f9d6895627 Add test for +initialize being called whether or not it's implemented.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33844 72102866-910b-0410-8b05-ffd578937521
2011-09-16 08:33:05 +00:00
fredkiefer
0b9867ab87 iUse SKIP correctly by providing a test set around it.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33785 72102866-910b-0410-8b05-ffd578937521
2011-08-25 09:07:41 +00:00
fredkiefer
be8cee55f2 Don't run the initialize test if we cannot stop it with a signal.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33784 72102866-910b-0410-8b05-ffd578937521
2011-08-25 09:00:41 +00:00
fredkiefer
2c42f05b7f Make test usable on MinGW
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33783 72102866-910b-0410-8b05-ffd578937521
2011-08-25 08:46:31 +00:00
rfm
16657e5ff4 improve mime tests for excess data
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33737 72102866-910b-0410-8b05-ffd578937521
2011-08-15 08:59:24 +00:00
theraven
6ecc626629 Fix the test on 64-bit (am I the first person to run this test on LP64?). NSTemporaryDirectory was not declared, so its return type was int, and so the object pointer was truncated.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33730 72102866-910b-0410-8b05-ffd578937521
2011-08-13 18:32:10 +00:00
theraven
f72d31cd68 Clean up NSRegularExpression, so that it compiles without warnings with or without ICU, but we don't pretend that we support things that we don't and silently return nonsense results to make debugging difficult for GNUstep users.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33688 72102866-910b-0410-8b05-ffd578937521
2011-08-03 12:04:27 +00:00
theraven
a04ed1a9ff Make base do unintuitive and stupid things in the name of Apple compatibility (hopefully Apple will fix their implementation in 10.7.something...).
Fix some tests.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33687 72102866-910b-0410-8b05-ffd578937521
2011-08-03 09:04:12 +00:00
fredkiefer
3104649bc8 Remove warnings generated by tests.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33686 72102866-910b-0410-8b05-ffd578937521
2011-08-03 08:41:26 +00:00
fredkiefer
5134f51320 Small fixes on tests.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33681 72102866-910b-0410-8b05-ffd578937521
2011-08-02 08:52:15 +00:00
theraven
8a8836129c Added some tests for round-trips through NSNumber.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33650 72102866-910b-0410-8b05-ffd578937521
2011-07-27 08:57:30 +00:00
theraven
407c9d0053 Tweak the weak tests so that they should still work, even if -base was compiled
with something that doesn't do a very good job of optimising autorelease
operations away.



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@33644 72102866-910b-0410-8b05-ffd578937521
2011-07-26 20:12:32 +00:00
theraven
60b9752943 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
theraven
1d43e6de35 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
theraven
ceba92a265 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
theraven
fc206e3169 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
theraven
b45d78dfa7 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
theraven
accb4a97dc 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
theraven
7fea03e697 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
rfm
01b098e28a 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
theraven
408cec80d5 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
theraven
e23cad7454 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
theraven
9b2b826548 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
theraven
2735e3cb8b 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
rfm
bf055f4e56 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
rfm
49b2b9c764 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
wlux
387687ccbf 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
rfm
e662ca46d2 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
rfm
94f95cd118 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
rfm
c078d97164 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
rfm
b1a7add38e 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
rfm
f11cf6ae9a 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
rfm
efb095506b 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
rfm
213d36b7d0 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
rfm
e1b6677bf8 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
rfm
7d51172308 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
rfm
224616a0f2 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
theraven
403d4741a6 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
rmottola
d1798099ab 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
theraven
fb8ad303e3 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
rfm
74f0642938 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
theraven
3367fd283b 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
theraven
4529ebcb0d 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
theraven
d5be261c5f 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
rfm
ba8877299f 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
rfm
0cd0210518 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
rfm
1214410b14 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
rfm
e1f08c60be 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
rfm
8f2ecfa9d5 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
stefanbidi
65a5ff0f71 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
stefanbidi
1105063c2f 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
rfm
1812ce2707 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
rfm
234755c849 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
rfm
194166de96 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
rfm
328152bfbc 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
rfm
c518b0f246 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
stefanbidi
f838cc8382 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
rfm
80f133ce16 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
rfm
0d6ac39d8b 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
rfm
e94b16ae4e 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
stefanbidi
99f65a83db 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
rfm
6d21d67c23 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
rfm
11c393b2dc 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
rmottola
2edfecc95f 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
rfm
98d6bbc8b3 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
rfm
edfcb94fe7 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
rfm
95262fc581 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
rfm
2b97ed586f 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
rfm
c3df977217 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
rfm
6641e12d91 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
rfm
7a3fc5ed97 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
rfm
2258d6c8b7 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
rfm
2eab3a6acd 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
stefanbidi
e25cf16b52 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
stefanbidi
4f916fe251 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
rfm
ff9501a9ca 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
rfm
7c21a3eb0a 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
rfm
ec66860a07 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
rfm
94be544785 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
rmottola
96c2fad307 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
rmottola
a89b92b79e 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
rfm
bccd43c597 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
rfm
3fba03ba55 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
theraven
bb271d0efd 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
theraven
e4ddd5a810 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
theraven
b905a54e80 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
theraven
fb1c8c23b7 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
theraven
e721305e57 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
theraven
b9d8149ea2 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
rfm
bfc4cd5b35 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
theraven
c461a9914b 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
rfm
40a8c57b42 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
rfm
f4a4b31710 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
rfm
9b052fef23 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
theraven
5e909e6d5f 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
rfm
e3a0b4cab8 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
rfm
a8fccb8c21 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
rfm
868e64175f 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
rfm
6f27c3f23d 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
rfm
8c682f533a 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
rfm
f406e096dc 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
rfm
426b7a09a1 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
rfm
5f3b9ae92c 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
rfm
9c9bb06fb4 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
rfm
4e4889ab7d 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
rfm
cae6500416 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
rfm
f2e81c9391 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
rfm
a1d002fdbf 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
rfm
9f2c96522b 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
rfm
fafc78683f 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
rfm
affab884fc 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
rfm
fe7787d92e 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
rfm
ceb881bca3 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
rfm
ca854a4b3c 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
rfm
56cdca569a 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
rmottola
b983668fe5 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
rfm
3ee426316e 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
rfm
17c2678ad1 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
rfm
bc6d6d8260 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
rfm
b179b29898 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