Commit graph

114 commits

Author SHA1 Message Date
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
e085dd6bb9 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
rfm
31eeb94bf3 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
9eacfdee70 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
0a3883b4a0 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
4aa11c7652 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
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
62eec6aa6a 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
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
de2378bc87 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
rfm
a02864b726 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
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