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
59d4be1265
OSX compat tweaks
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32323 72102866-910b-0410-8b05-ffd578937521
2011-02-23 11:52:17 +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
4388c7a05b
osx compat tweak
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32321 72102866-910b-0410-8b05-ffd578937521
2011-02-23 09:40:57 +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
2aed57d95a
Improve reliability
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32316 72102866-910b-0410-8b05-ffd578937521
2011-02-23 08:56:25 +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
6f9ef887aa
fix for constant string case changes
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32309 72102866-910b-0410-8b05-ffd578937521
2011-02-23 07:25:12 +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
Nicola Pero
e4cad664d8
Implemented lookup of selector with a type for __GNU_LIBOBJC__. We can simply use sel_copyTypedSelectorList() to access the full list of selectors with a certain name.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32296 72102866-910b-0410-8b05-ffd578937521
2011-02-22 13:34:49 +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
c7c3b61563
Try to make sure we have an absolute path for executables
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32291 72102866-910b-0410-8b05-ffd578937521
2011-02-22 12:22:49 +00:00
Richard Frith-MacDonald
e6fca186b1
portability tweak
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32290 72102866-910b-0410-8b05-ffd578937521
2011-02-22 11:55:37 +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
f756c612ca
use 10.0 behavior if we have no ICU
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32260 72102866-910b-0410-8b05-ffd578937521
2011-02-21 12:36:18 +00:00
David Chisnall
8e1fcfe9d5
Added ChangeLog entry from last commit
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32258 72102866-910b-0410-8b05-ffd578937521
2011-02-21 11:06:51 +00:00
David Chisnall
18ccb48ece
Some changes to method type lookup when forwarding. Alway use the compiler-supplied type information if it exists - this is guaranteed to by the correct type encoding for the call frame and lets us deconstruct it correctly. We can then fail gracefully later on when trying to invoke the selector if the types in the callee don't match, rather than by reading nonsense from the stack now.
...
When using the GNUstep runtime, use the safe mechanism for checking whether there is more than one typed selector, and only use that as a guess if it is safe to do so. With the GCC runtime, we are still stuck using the API that it is impossible to use safely (we might be better off just giving up at this point), but now we call this after -methodSignatureForSelector:, so the app developer gets a chance to do the right thing before we do the wrong thing.
Also changed the assert to throw an exception if no type signature can be found. This behaviour is consistent with Mac OS X.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32257 72102866-910b-0410-8b05-ffd578937521
2011-02-21 11:05:33 +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
61bc059d4a
Cleanup ... avoid accessing the 'isa' variable directly.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32247 72102866-910b-0410-8b05-ffd578937521
2011-02-20 16:21:43 +00:00
Fred Kiefer
ccdc185f97
* Source/NSNumberFormatter.m (-init): Only check the formatter in
...
the ICU case.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32244 72102866-910b-0410-8b05-ffd578937521
2011-02-20 14:58:23 +00:00
Richard Frith-MacDonald
4ed081d410
Replace old code directly referencing class_pointer ivar with calls to the new runtime API treating objects as opaque pointers.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32243 72102866-910b-0410-8b05-ffd578937521
2011-02-20 12:28:12 +00:00
Richard Frith-MacDonald
0cb48d516b
Update for new runtime api
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32241 72102866-910b-0410-8b05-ffd578937521
2011-02-20 08:32:54 +00:00
Richard Frith-MacDonald
c7eeb1bb08
Use GSObjCRuntime functions for selector types until/unless we can get
...
a standard runtime API that handles them.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32240 72102866-910b-0410-8b05-ffd578937521
2011-02-20 07:58:11 +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
b9b50a9fef
simplify a little
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32229 72102866-910b-0410-8b05-ffd578937521
2011-02-19 17:46:45 +00:00
David Chisnall
71905252e5
Simplify the macros from the last commit. We don't actually need them with the old GCC runtime, because we already implement wrappers in the ObjectiveC2 framework, which let us easily migrate from GCC 4.5 libobjc + Objective2 to libobjc2 without a recompile (although not to GCC 4.6 libobjc, due to the function renaming).
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32222 72102866-910b-0410-8b05-ffd578937521
2011-02-19 16:07:07 +00:00
David Chisnall
32fbfc3217
Added ChangeLog entry from last commit
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32221 72102866-910b-0410-8b05-ffd578937521
2011-02-19 16:05:00 +00:00
David Chisnall
495f92e10a
Add some macros that map some libobjc functions to their runtime-specific variants.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32220 72102866-910b-0410-8b05-ffd578937521
2011-02-19 16:02:55 +00:00
David Chisnall
ddad542fb1
Add some explicit casts-through-void* to silence warnings about casts that increase the alignment requirements of the pointee (mostly caused by using char* for arithmetic).
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32219 72102866-910b-0410-8b05-ffd578937521
2011-02-19 15:34:21 +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
2f6264e1cb
quick hack for NaN comparison
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32200 72102866-910b-0410-8b05-ffd578937521
2011-02-17 18:04:17 +00:00