Commit graph

748 commits

Author SHA1 Message Date
hmelder
b9ee6a1815 Remove leftover 2024-09-10 19:05:38 +02:00
hmelder
759bfdf86b Compare with non-remote NSString object 2024-09-10 18:45:58 +02:00
hmelder
95833b1ab4 Mark NSURL test depending on network connection as hopeful 2024-09-10 18:41:07 +02:00
hmelder
ca9c82acb8 Add remote hash 2024-09-10 17:36:23 +02:00
hmelder
04a5d8dc28 Mark late unregister as hopeful on Win32 with GCC 2024-09-10 11:11:02 +02:00
hmelder
4173add4ed Add suffix to linker hack 2024-09-09 17:34:26 +02:00
hmelder
e096cf2110 MinGW GCC adds .exe suffix 2024-09-09 17:06:40 +02:00
hmelder
844f7c5587 Add NSConstantString literal as global variable to avoid linker error 2024-09-09 10:51:36 +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
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
Gregory Casamento
ced4cd0531
Merge pull request #410 from gnustep/NSExpression_branch 2024-06-11 11:46:56 -04:00
rfm
3bcb484691
Merge pull request #416 from gnustep/enumerateSubstringInRange
Fix broken enumerateSubstringsInRange:options:usingBlock: implementation
2024-06-11 13:29:48 +01:00
rfm
930b901558 remove obsolete test 2024-06-10 15:27:35 +01: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
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
hmelder
3c3417fabe Remove Windows Include and correctly release thread obj 2024-04-28 23:22:20 +02:00
hmelder
80c3d66677 Add NSThread unit test for name: and setName: on win32 2024-04-28 23:22:20 +02:00
Frederik Carlier
6173861248
win64/clang+msvc: Skip failing tests and mark flaky test as hopeful 2024-04-28 22:16:45 +02:00
hmelder
2918bd992e Refactor +[NSTimeZone timeZoneArray] 2024-04-17 23:32:56 +02:00
rfm
509a29cc5b make stack symbols tests more ionformative ... check that class and method names are reported 2024-04-14 12:02:13 +01:00
rfm
6a796f145c temporary fix: revert ot using httpbin.org - a proper fix would be to use a local server controlled by the test process 2024-04-14 10:06:55 +01:00