Commit graph

775 commits

Author SHA1 Message Date
hmelder
c06a466af7 Merge branch 'kvc-caching' into kvo-kvc-test 2024-09-10 17:05:11 +02:00
hmelder
8a5c2b4c1a Merge branch 'kvo_winobjc' into kvo-kvc-test 2024-09-10 17:04:02 +02:00
hmelder
1fc9da8134 Update Archiving of Structs 2024-09-10 13:42:38 +02:00
hmelder
ece79a862c Mark as hopeful for broken compilers like GCC 2024-09-10 13:09:41 +02:00
hmelder
2ebbb02918 Use type encoding helpers to detect known structs in KVC 2024-09-10 12:45:27 +02:00
Hugo Melder
012947f09e
NSOperationQueue: Proper names for worker threads (#437)
* NSOperationQueue: Give Worker Threads a name

* Update Changelog

* Remove empty string test
2024-09-08 16:54:01 +02:00
hmelder
d6a4f4efa0 safe_caching: Remove Guards 2024-09-07 19:17:58 +02:00
hmelder
ae02ddd3dc Add basic NSKeyValueCoding tests 2024-09-07 12:03:05 +02:00
rfm
ed4e305026
NSURLSession rewrite (#422)
* clang-format: Do not use tabs

* Ignore clangd cache and compile_commands

* NSBlockOperation: Fix memory leak

* NSHTTPCookie: Fix expires date parsing

* NSHTTPCookie: Release DateFormatter after use

* NSOperation: Remove all objects at end of execution

* Reimplementation of NSURLSession

* NSURLSession: Update expiration dates in test

* Update ChangeLog

* Fix trivial compiler warning caused by missing import

* Import GSDispatch.h for definition of DISPATCH_QUEUE_SERIAL

* Import common.h early to avoid header conflict

* Fix import order to avoid conflicts and ensure we have correct localisation macro

* Check for presence of dispatch_cancel

* Cancel timer using dispatch_source_cancel() if dispatch_cancel() is missing.

* NSURLSession: Replace dispatch_io with dispatch_source in unit test HTTP server

---------

Co-authored-by: hmelder <service@hugomelder.com>
2024-08-16 14:08:41 +02:00
Earl Robsham
a5ed5dbe11
Update -[NSMutableArray removeLastObject] (#433)
* Update `-[NSMutableArray removeLastObject]`

Updates the following implementation to avoid raising an exception if the array is already empty (or notifying observers if applicable):
 * `-[NSMutableArray removeLastObject]`
 * `-[GSMutableArray removeLastObject]`
 * `-[NSKeyValueMutableArray removeLastObject]`
 * `-[NSKeyValueIvarMutableArray removeLastObject]`

This brings the behavior of `-[NSMutableArray removeLastObject]` inline with the Apple implementation, improving compatibility for code bases which use both GNUStep and Apple objc/Foundation implementations.

* Add `-[NSMutableArray removeLastObject]` test case

Adds a test case to ensure `-[NSMutableArray removeLastObject]` does not raise an exception when called on an empty array.
2024-08-10 23:44:02 +02:00
rfm
a1514249f3 Tweaks to match OSX pointer array behaviors more accurately. 2024-07-22 12:22:40 +01:00
Richard Frith-Macdonald
d2fec6b222 a few GC related tests 2024-07-21 09:43:21 +01:00
Richard Frith-Macdonald
42a3e55499 simple test for pointer array and weak objects 2024-07-18 12:43:46 +01:00
Richard Frith-Macdonald
6dd13deac2 fix typo 2024-07-17 16:34:57 +01:00
rfm
7aa05d2591 reinstate lost change 2024-07-17 16:32:50 +01:00
rfm
f6b8c83bd0 Don't crash when built with gcc 2024-07-17 14:14:46 +01:00
Richard Frith-Macdonald
a0a62fbde4 make tests pass on os-x 14.5 2024-07-17 11:32:52 +01:00
rfm
1a1e7f7fc5 Acquiring existing memory does not use a funtion on OSX, copy that behavior. 2024-07-16 19:43:28 +01:00
rfm
8c722deb0c Fix error in testcases due to uninitialsed padding in struct 2024-07-16 14:37:41 +01:00
rfm
d32065b322 fix non-portable testcases 2024-07-16 13:46:09 +01:00
rfm
b677ea402a Add some simple pointer functions personality tests 2024-07-16 12:07:32 +01:00
rfm
3fedf31c2d
Revert "NSURLSession Reimplementation (#411)"
This reverts commit 07233534e6.
2024-07-02 19:19:14 +01:00
Hugo Melder
07233534e6
NSURLSession Reimplementation (#411)
* clang-format: Do not use tabs

* Ignore clangd cache and compile_commands

* NSBlockOperation: Fix memory leak

* NSHTTPCookie: Fix expires date parsing

* NSOperation: Remove all objects at end of execution

* Reimplementation of NSURLSession

* Update ChangeLog
2024-07-02 15:58:48 +02:00
rfm
c79b9844bd fix non-portable code in testcase 2024-06-23 08:20:52 +01:00
hmelder
7eafd58556 NSKVOSupport: Do not leak Observee and TestFacade objects 2024-06-11 18:01:31 +02:00
hmelder
21e6f1e118 NSKVOSupport: Do not autorelease newWithObservee: 2024-06-11 17:51:59 +02:00
Gregory Casamento
ced4cd0531
Merge pull request #410 from gnustep/NSExpression_branch 2024-06-11 11:46:56 -04:00
hmelder
c04e51b798 NSKVOSupport: Do not wrap block in try/finally to avoid crash in windows 2024-06-11 17:17:07 +02:00
hmelder
77d8ef83e3 NSKVOSupport: Add more tests 2024-06-11 16:02:09 +02:00
rfm
3bcb484691
Merge pull request #416 from gnustep/enumerateSubstringInRange
Fix broken enumerateSubstringsInRange:options:usingBlock: implementation
2024-06-11 13:29:48 +01:00
hmelder
3708abd5ed NSKVOSupport: Add toMany test 2024-06-11 13:23:24 +02:00
rfm
930b901558 remove obsolete test 2024-06-10 15:27:35 +01:00
hmelder
99329699c4 NSKeyValueObserving: Use old implementation as fallback 2024-06-04 23:04:01 +02:00
Hugo Melder
4d3926d250
Implement -[NSString enumerateLinesUsingBlock:] (#407)
* Implement -[NSString enumerateLinesUsingBlock:]

* Fix formatting

* Use GNUstep CALL_BLOCK macro
2024-06-04 22:19:45 +02:00
hmelder
5a5e04598c NSKVOSupport: Add test cases 2024-06-04 20:19:13 +02:00
hmelder
edbc859093 NSString: Add enumerateSubstringsInRange tests 2024-06-04 12:10:31 +02:00
hmelder
8024082027 NSPredicate: Add tests for constant expressions 2024-05-31 14:24:57 +02:00
Gregory John Casamento
d3d53ab23f Clean up tests 2024-05-31 00:20:09 -04:00
Gregory John Casamento
392a626444 Add missing enum values, add skeleton implementations for metods, add simple tests 2024-05-25 00:39:34 -04:00
Gregory John Casamento
84e1ef9881 Add extremely simple tests to make sure that each of the methods returns non-nil 2024-05-24 23:04:13 -04:00
Doug Simons
0935f77d8f
Merge pull request #405 from gnustep/small_xml_fixes
Two small xml fixes
2024-05-15 09:26:57 -06:00
Frederik Seiffert
6e2bd5c4e8 Fixed missing semicolon in NSURLConnection test 2024-05-15 17:09:00 +02:00
Doug Simons
50f447f5b8
Fix execute_xpath() to return an NSError when expression can't be evaluated; Remove previous attributes when setting attributes; Add related tests 2024-05-14 15:25:07 -06:00
rfm
adbc7c2631
Merge pull request #400 from gnustep/nsurlhandle_cache
GSFileURLHandle: Remove file handle caching
2024-05-12 10:11:28 +01:00
rfm
1fdf6395bd
Merge pull request #370 from ethanc8/ethanc8-3
Implement +[NSRegularExpression escapedPatternForString:] and -[NSString enumerateSubstringsInRange:options:usingBlock]
2024-05-12 09:32:34 +01:00
hmelder
c09bf52ef7 Format tests using clang-format 2024-05-08 16:06:44 +02:00
hmelder
e4a5e275de NSIndexSet: Add tests for enumerateRangesInRange 2024-05-08 16:06:44 +02:00
hmelder
a1dff584a4 GSFileURLHandle: Remove caching functionality 2024-05-06 18:06:50 +02:00
hmelder
e1fcc2db35 GSFileURLHandle: Use NSCache and limit cache size 2024-05-06 10:38:07 +02:00
Frederik Carlier
7ec9667505
Merge pull request #398 from qmfrederik/win64-hopeful
win64/clang+msvc: Skip failing tests and mark flaky test as hopeful
2024-04-29 17:35:29 +02:00