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
a7d0854736
Add inline specifier to __objc_dynamic_get_symbol_path() to silence unused function warning.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32345 72102866-910b-0410-8b05-ffd578937521
2011-02-24 13:11:47 +00:00
thebeing
209cee49f5
Fix typos.
...
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@32344 72102866-910b-0410-8b05-ffd578937521
2011-02-24 12:34:21 +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
c0674078c9
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
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
b30421e987
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
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
0bd579f239
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
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
96b3bdf4b2
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
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
nicola
ff4fa6aa4a
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
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
50b460778c
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
rfm
e689faf81a
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
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
5eb6815b5e
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
theraven
01c97b7b78
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
theraven
70588c3ad2
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
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
313cf13c67
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
fredkiefer
4531875573
* 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
rfm
fb08144b5e
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
rfm
d32eb0e985
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
rfm
050f3f7190
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
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
b1eb86d5b4
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