Commit graph

23 commits

Author SHA1 Message Date
Frederik Seiffert
5c562c546f Windows MSVC fixes 2021-02-12 14:33:04 +01:00
Daniel Ferreira
a9df1b104a NSGeometry: create NSEdgeInsets struct
Create the NSEdgeInsets struct in NSGeometry, introduced in OSX 10.7.
Add helper functions for creating these insets.

This struct is not used in Base. Rather, it is used as part of newer
APIs in GUI.
2017-06-29 21:18:16 +01:00
Richard Frith-MacDonald
cc27fb0cb5 Use UTF8String rather than cString
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@40393 72102866-910b-0410-8b05-ffd578937521
2017-03-17 09:45:02 +00:00
Richard Frith-MacDonald
4a2081691d test for home directory of non-existent user
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39927 72102866-910b-0410-8b05-ffd578937521
2016-06-27 06:39:31 +00:00
Richard Frith-MacDonald
9efb9a32e3 avoid compiler warnings
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@39736 72102866-910b-0410-8b05-ffd578937521
2016-05-10 09:56:41 +00:00
Richard Frith-MacDonald
e57bc44c66 patch for bug bug #42740
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@37991 72102866-910b-0410-8b05-ffd578937521
2014-07-13 07:37:24 +00:00
Richard Frith-MacDonald
b49c4b7eaa remove libobjc2 specific tests David is now doing (better) in objc2 testsuite
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36794 72102866-910b-0410-8b05-ffd578937521
2013-07-02 04:21:32 +00:00
Richard Frith-MacDonald
f1e03247bd add some byte swapping tests based on mySTEP
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@36141 72102866-910b-0410-8b05-ffd578937521
2013-02-15 09:35:45 +00:00
Richard Frith-MacDonald
ac061d5976 add intersection of empty rects test
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@35753 72102866-910b-0410-8b05-ffd578937521
2012-10-28 06:35:05 +00:00
David Chisnall
682c9beb5b 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
Fred Kiefer
6dfb591252 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
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
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
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
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
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
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
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
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
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