rfm
1942313dea
NSISO8601DateFormatter bugfix (as reported by kevinpeizner) and tweaks.
2023-10-26 14:19:06 +01:00
Richard Frith-Macdonald
f0f841c01f
test for non existent directory
2023-10-10 18:12:17 +01:00
Richard Frith-Macdonald
531d3b8559
Small array keyword fixes for NSPredicate
2023-10-08 13:48:33 +01:00
Gregory John Casamento
48ccee0beb
Update tests to cover removeObserver:fromObjectsAtIndexes:forKeyPath:context:
2023-10-07 20:51:47 -04:00
Gregory John Casamento
3c7e13244f
Update tests to test removeObserver:forKeyPath:context method
2023-10-07 20:51:47 -04:00
Richard Frith-Macdonald
1feeb27b08
Make testcases more robust.
2023-09-17 23:35:24 -04:00
Richard Frith-Macdonald
65163ebf48
Add testcases and corrected code to check for GSMacOSXCompatibility mode
...
when unlocking fails. Also put more detail in the warning message
2023-09-17 23:35:03 -04:00
Richard Frith-Macdonald
ef9ad60627
Add Yavor Doganov's patches
2023-08-01 14:46:44 +01:00
Frederik Seiffert
48c8a1a6a1
Fix NSURL path on Windows for UNC paths
2023-07-26 18:21:07 +02:00
Richard Frith-Macdonald
5fd4dd1f16
Add interface for category ... needed on sme architectures in order to
...
get argumentds passed correctly.
2023-07-10 21:39:49 +01:00
Frederik Seiffert
7e14fd1979
Change NSURL tests to use example.com
...
httpbin.org has lately been unreliable, leading to spurious test failures on CI.
2023-06-13 14:33:40 +02:00
Frederik Seiffert
df743e6d52
Add test for -[NSFileManager contentsOfDirectoryAtURL:...]
2023-04-27 10:51:15 +02:00
rfm
96a8613dbc
Merge pull request #291 from qmfrederik/fixes/nsdata-base64-empty-string
...
`[NSData initWithBase64EncodedString]`: Fix decoding of an empty string
2023-04-07 15:29:22 +01:00
Frederik Carlier
081f890be8
[NSData initWithBase64EncodedString]
: Fix decoding of an empty string
...
Don't call `NSZoneRealloc` with a length of 0, but free the zone and return an empty `NSData` buffer instead.
2023-04-06 21:54:46 +00:00
Frederik Seiffert
1835f3f549
NSURLSession: mark broken test as hopeful on Windows
2023-03-11 20:22:00 +01:00
Hugo Melder
a8c421d485
Skip all NSURL* test cases using GSInetServerStream on Windows ( #268 )
...
* Mark all test cases using GSSocketStream as hopeful on win32
* Update ChangeLog
* Remove allow-test-failures flag
2022-09-27 20:21:50 +02:00
Hugo Melder
63703e0a80
Improve strict C99 support by explicitly including headers ( #275 )
...
* Explicitly include headers in config and tests
* Update ChangeLog
2022-09-15 12:24:49 +02:00
Richard Frith-Macdonald
15b97442cb
Use httpbin.org rather than www.w3.org since the latter no longer supports http
2022-09-15 10:07:57 +01:00
Frederik Seiffert
179158dbc5
Fix NSPredicate test using GCC
2022-09-15 10:57:17 +02:00
Hugo Melder
8f8585405e
NSXMLParser unit test fixes ( #272 )
...
* Convert parser output to LF
* Only replace CR
2022-08-27 12:41:18 +02:00
Hugo Melder
7fd20d1ae3
NSPredicate Value Fix
...
* Check if object is an NSExpression object
* Fix Indentation
* Update Changelog
* Add test case
2022-08-24 18:01:30 +02:00
Richard Frith-Macdonald
68f6862ff2
Add a few testcases and make ICU dependent tests into 'hopes'
2022-08-23 21:10:21 +01:00
Hugo Melder
78d9f73a36
Allow CRLF and LF in NSXMLParser test
2022-08-23 19:18:44 +02:00
Hugo Melder
32eb5d2acd
win32: Support overlapped (asynchronous) I/O on standard streams in GSFileHandle
...
* win32: Support overlapped I/O on standard streams in GSFileHandle
* Add isStandardInput instance variable
* Restrict PeekConsoleInput on stdin
* Update ChangeLog
2022-08-23 18:43:14 +02:00
Hugo Melder
6b537b4a45
Detect CRLF in GSMime tests
...
* Detect CRLF in GSMime tests
* Allow either CRLF or LF
* Update general.m
2022-08-23 18:41:37 +02:00
Hugo Melder
7d6a84f4f5
Mark notANumber test case as hopeful
2022-08-19 10:58:29 +02:00
Hugo Melder
beb3e73e2f
Update NSTimeZone unit test to match macOS behaviour
2022-08-11 16:34:07 +02:00
Hugo Melder
9a0b660299
Merge branch 'master' into NSTimeZone-win32-fix
2022-08-11 11:59:07 +02:00
Hugo Melder
f5a983a037
Merge pull request #256 from gnustep/msvc-test-fixes
...
GSTLS, NSData, NSString Unit Test Fixes on Windows MSVC
2022-08-11 11:57:21 +02:00
Hugo Melder
ca9136397d
Merge branch 'master' into NSBundle-msvc-tests
2022-08-11 09:16:06 +02:00
Hugo Melder
886a9220da
Merge pull request #257 from gnustep/nstask-msvc-test-fixes
...
Fix NSTask unit tests on Windows MSVC
2022-08-11 09:15:06 +02:00
Hugo Melder
f1be501f38
Merge pull request #260 from gnustep/NSXML-test-fixes
...
NSXML unit test and NSURL file URI fixes
2022-08-11 09:14:32 +02:00
Hugo Melder
1ea722a07a
Fix NSXMLParser (strict) tests on Windows
2022-08-10 17:53:59 +02:00
Hugo Melder
ffe938c49e
Update GSXML unit test to use NSURL APIs
2022-08-10 17:15:16 +02:00
Hugo Melder
a5c98620c0
Merge branch 'master' into msvc-test-fixes
2022-08-09 12:09:57 +02:00
Hugo Melder
8361596447
Add START_SET and END_SET to NSData/additions.m unit test
2022-08-09 12:05:12 +02:00
Hugo Melder
3c095da62f
Windows to IANA time zone conversion: remove unsupported TIME_ZONE_ID_DAYLIGHT conversion
2022-08-07 10:55:20 +02:00
Richard Frith-Macdonald
34fca15dc9
iFix incorrect use of ObjC strings where C-strings expected.
2022-08-06 17:33:20 +01:00
Hugo Melder
f6ce98e7b5
Remove erroneous suffix.
2022-08-05 13:31:16 +02:00
Hugo Melder
f3e6ea1dd5
Remove comment
2022-08-05 12:55:46 +02:00
Hugo Melder
dd2d3f684c
Conditionally use .exe suffix in executable paths in NSTask tests
2022-08-05 12:54:36 +02:00
Hugo Melder
e84fd88e6b
Fix compilation of NSTask helper test files on Windows MSVC
2022-08-05 12:53:34 +02:00
Hugo Melder
2e65ee34f1
Disable tilde abbreviation test on Windows
2022-08-04 17:05:55 +02:00
Hugo Melder
98ff5d2a16
Check for UTF8String in NSProgress unit test
2022-08-04 17:05:55 +02:00
Hugo Melder
e052d5764a
Change Objective-C string to cstring in NSProgress unit test
2022-08-04 17:05:55 +02:00
Hugo Melder
52b8752776
Check for nil in NSData Test
2022-08-04 17:05:55 +02:00
Hugo Melder
096f6e7fec
Missing semicolon and misplaced code in GSTLS unit test
2022-08-04 17:05:55 +02:00
Hugo Melder
c70ba22b0c
Remove modified GNUmakefile
2022-08-04 13:13:55 +02:00
Hugo Melder
0eae4f67de
Add modified GNUmakefile
2022-08-04 13:12:05 +02:00
Hugo Melder
57233b1332
Remove .type files and add it to gitignore
2022-08-04 13:07:50 +02:00
Hugo Melder
e6789cb7ed
Fix coding unit test and tolerate size differences
2022-08-04 13:05:43 +02:00
Hugo Melder
6fac511e43
Fix NSBundle test on Windows MSVC
2022-08-03 16:15:45 +02:00
Frederik Seiffert
8ca4381676
Add userInfo accessor to NSProgress.
2022-04-29 19:54:09 +02:00
Richard Frith-Macdonald
d18cba351c
Add test for repeated combining characters
2022-04-07 14:34:26 +01:00
Gregory John Casamento
9cc7266931
Move era/hour/min/sec tests to it's own file.
2022-04-06 16:01:41 -04:00
Gregory John Casamento
e99dd4ec6b
Add implementation for getEra:... and getHour:... method in NSCalendar. Add documentation to all methods.
2022-04-06 14:19:36 -04:00
Richard Frith-Macdonald
ae72ee4593
Fix for #243
2022-03-07 10:13:44 +00:00
Levin Li
d971813d2a
Add test for zh-Hans_CN
2021-12-30 21:26:54 +08:00
Frederik Seiffert
1980f9bdf6
Extended tests for concurrent NSOperations
...
- trigger isFinished KVO notification when not being finished
- add test for completion handler
2021-12-27 21:52:34 +01:00
Fred Kiefer
e797128a03
Merge pull request #226 from levinli303/master
...
Support more DOS/Windows string encodings
2021-12-26 13:08:56 +01:00
Levin Li
fe2f41c7f1
Use encoding number values from Apple
2021-12-26 14:22:04 +08:00
Richard Frith-Macdonald
1c81bc1193
Update to have helper subtask tell master when it is ready for tests to start
2021-12-03 13:36:51 +00:00
Richard Frith-Macdonald
b7d82408a6
Make URL loading tests more reliable
2021-11-19 11:44:20 +00:00
Mads Marquart
4033ee28a8
Fix NSGetSizeAndAlignment usage
...
The argument order is (*sizep, *alignp), but it was often incorrectly used the other way around.
2021-11-02 10:18:05 +01:00
Mads Marquart
9684c9fda1
Add test to ensure that NSData assigns bytes
and length
...
Specifically on initWithBytesNoCopy:length:deallocator:
2021-10-29 10:17:39 +02:00
Nuntius
b2983dc77a
Workaround for the session retain loop
2021-09-04 13:07:14 +02:00
rfm
1e8ff8e628
Merge branch 'master' into nstimezone
2021-08-18 14:52:24 +01:00
Richard Frith-Macdonald
e3f558810f
Remove unused test files
2021-08-18 14:36:45 +01:00
Richard Frith-Macdonald
c43ea6d474
Update for handling more future dates, and further testing.
2021-08-14 11:25:23 +01:00
Frederik Seiffert
f56d2689b6
Add test for NSFastEnumeration
2021-08-11 19:32:21 +02:00
Richard Frith-Macdonald
5162d888dc
timezone updates for version2 files
2021-08-11 08:43:20 +01:00
Frederik Seiffert
852ec7be7d
Tests: skip NSData gzip tests without zlib
2021-08-08 17:27:40 +02:00
Frederik Seiffert
abfe4e2a04
Use native threading and locking APIs on Windows
...
Removes dependency on pthread library and uses fast Slim Reader/Writer (SRW) locks for NSLock/NSRecursiveLock/NSCondition/NSConditionLock as well as all internal locks. Adds GS_MUTEX_*() macros in GSPThread.h, that are being used for all internal locking instead of pthread APIs.
Also adds support for thread priorities on Windows, fixes method signature of +[NSThread setThreadPriority:] to match Apple platforms, and adds error handling in same method.
2021-07-29 14:22:27 +02:00
Richard Frith-Macdonald
49ba7d1ed1
fixup name of end of set
2021-07-19 10:54:42 +01:00
Frederik Seiffert
8f31087119
Fix compilation of NSTask test processgroup helper on Windows.
2021-07-14 10:09:45 +02:00
Frederik Seiffert
4ceea4159c
Fix NSObject initialize test on Windows.
2021-07-14 10:09:45 +02:00
Frederik Seiffert
2212e08863
Fix NSJSONSerialization test on Windows.
...
"small" is defined as a macro in windows.h.
2021-07-14 10:09:45 +02:00
Frederik Seiffert
f492e50308
Make NSLock recursive lock test more robust.
...
Removed assumption that mutext ownership availability is tied to Windows platform and use config variable instead.
2021-07-14 10:09:45 +02:00
Frederik Seiffert
4a0e308383
Fix isa access in NSMethodSignature test.
2021-07-14 10:09:45 +02:00
Frederik Seiffert
1b826663f5
Add missing import statement in NSNumber test.
...
Fixes linker error on Windows MSVC.
2021-07-14 10:09:45 +02:00
Richard Frith-Macdonald
e2cbf5e871
Simple test of creating self-signed certificate credentials
2021-05-31 13:09:45 +01:00
Richard Frith-Macdonald
802c82cf33
Simple NSConnection client/server test tools
2021-05-31 13:08:40 +01:00
Richard Frith-Macdonald
8d75688048
Make test write a large request, not just a small one.
2021-05-19 11:07:45 +01:00
Richard Frith-Macdonald
782e7aed31
Fix for -setHTTPMaximumConnectionLifetime:
2021-05-05 12:04:28 +01:00
Richard Frith-Macdonald
9aa17b452c
Merge branch 'master' of github.com:gnustep/libs-base
2021-04-14 09:15:27 +01:00
Richard Frith-Macdonald
a0fd4bde68
a few more bom tests
2021-04-14 09:14:51 +01:00
Richard Frith-Macdonald
91e071bcb4
a few tests for 24hour clock
2021-04-14 09:11:58 +01:00
Richard Frith-Macdonald
67faee95f9
a few bom generation checks
2021-04-13 17:36:46 -04:00
Frederik Seiffert
b05481a8c8
Don't resurrect GSFileHandle singletons.
...
It seems to be no longer possible to call -retain from -dealloc with the latest libobjc2, which was causing the tests to fail.
We are also throwing an exception in this case, which would need to be specifically caught in order for the resurrection to be of value to users, so this simply removes the -retain call and resets the singleton variables to nil in order to not have invalid pointers and for the singletons to be re-created on subsequent access.
2021-03-26 13:17:36 +01:00
Richard Frith-Macdonald
e6c387f8fd
Fixup to perform a full load
2021-02-15 21:20:22 +00:00
Richard Frith-Macdonald
4b5e342c89
Check that a POST actually finishes
2021-02-15 20:41:58 +00:00
Frederik Seiffert
5c562c546f
Windows MSVC fixes
2021-02-12 14:33:04 +01:00
Richard Frith-Macdonald
05542be4c7
iComment on why we have a hope
2021-02-09 21:29:40 +00:00
Richard Frith-Macdonald
309eb5fb6c
Change sense of test so that success of resolving a relative link is a pass
2021-02-09 15:48:08 -05:00
Richard Frith-Macdonald
6977d9e759
Test for initialisation with nil string
2021-02-04 11:12:15 +00:00
Richard Frith-Macdonald
e2f6d591b3
Merge branch 'master' of ssh://github.com/gnustep/libs-base
2021-01-23 13:47:29 +00:00
Richard Frith-Macdonald
f4da566b94
Simple check for timezone adjustments around 1970
2021-01-22 10:34:06 +00:00
Richard Frith-Macdonald
0ece3b8980
avoid clash with strnstr() declaration on bsd systems
2021-01-22 03:47:16 -05:00
Richard Frith-Macdonald
68308540bd
Add a couple of teswts for scanning zeros as doubles
2021-01-21 14:38:31 +00:00
Richard Frith-Macdonald
5026274f6c
fix stupid mistake using wrong string value
2020-12-15 12:34:03 +00:00
Richard Frith-Macdonald
bcbdeb64a8
Fix initialisation of NSUUID from string (permit mixed case hex digits)
2020-12-15 10:40:55 +00:00
Richard Frith-Macdonald
aff02f4d08
Create temporarry file in current directory and delete it when done ... fixes testcase to work on windows.
2020-12-03 09:22:15 -05:00
Richard Frith-Macdonald
1b7bf26bea
Merge changes for NSURLSession from EngageHub (formerly Brainstorm).
2020-11-29 06:57:47 -05:00
Richard Frith-Macdonald
a34beadb8e
Merge branch 'gnustep_testplant_mergeback' of https://github.com/TestPlant/libs-base into TestPlant-gnustep_testplant_mergeback
...
Conflicts:
ChangeLog
2020-11-13 05:39:15 +00:00
Richard Frith-Macdonald
9b8a84d936
allow more time for operations thread to exit on slow machines
2020-11-12 11:37:53 +00:00
Adam Fox
0b69d88ee2
Implementation of [NSData rangeOfData:options:range], adapted from [NSString rangeOfString:options:range].
2020-10-12 12:22:00 -06:00
Richard Frith-Macdonald
2a522739cb
add test for array as key
2020-09-23 08:39:33 +01:00
Richard Frith-Macdonald
689932aa10
add checks for rewriting a file
2020-07-31 15:02:15 +01:00
Richard Frith-Macdonald
15749a312d
Add check for timestamp behavior when writing via NSData method
2020-07-31 14:34:07 +01:00
Richard Frith-Macdonald
5408a71964
add delay to be clear file date is in past before we copy it
2020-07-31 09:10:41 +01:00
Richard Frith-Macdonald
c1d4629a83
OSX, unlike Posix, sets the modification and creation dates of a copy to be the same as the original (within floating point limits).
2020-07-30 16:39:47 +01:00
Richard Frith-Macdonald
cf3fc4648c
Add test that creation/modification dates of copy differ from original
2020-07-29 14:58:21 +01:00
Richard Frith-Macdonald
ba24a18176
Add a fgew tests for capitalisation
2020-06-24 11:34:50 +01:00
Richard Frith-Macdonald
064c779fca
an empty string is not equal to nil
2020-06-23 06:53:47 +01:00
Richard Frith-Macdonald
c04911d84f
Fix by Yavor Doganiv ... disable certificate expiry test except on 64bit systems, because old 32bit systems can't cope with the test certificate end date.
2020-06-12 09:11:41 +01:00
Frederik Seiffert
e87d481f64
Add tests for NSValueTransformer.
2020-06-11 14:15:57 +02:00
Frederik Seiffert
b05c6d65bf
Test replacing a weak value in NSMapTable.
2020-06-05 11:48:35 +02:00
Richard Frith-Macdonald
1be8a1375a
tidy whitespace
2020-05-29 16:24:59 +01:00
Richard Frith-Macdonald
4da65fa4ff
Add tests for exactly when notification of thread exit occurs
2020-05-26 16:26:35 +01:00
Frederik Seiffert
cd251a531a
Extended general tests for NSUserDefaults.
2020-05-26 13:16:19 +02:00
fredkiefer
6c7defba24
* Tests/base/NSLocale/general.m: Mark more tests that depend on
...
locale setting as hopes.
* Tests/base/NSXMLParser/parse.m: Mark stream test as hopeful as
this isn't implemented at the moment.
* Tests/base/NSURL/basic.m: Use PASS_EQUAL in the downlaod test
to get the actual http status reported.
2020-05-09 15:46:32 +02:00
Richard Frith-Macdonald
2b704dd9d4
Update testcses to cover both parsers
2020-05-06 15:23:18 +01:00
rfm
ca2abf51f7
Merge pull request #130 from triplef/add-nsxmlparser-stream-support
...
Implement -[NSXMLParser initWithStream:].
2020-05-06 14:08:39 +01:00
Fred Kiefer
0b4f3b382a
Merge pull request #126 from alotorev/bugfix/NSURLComponents
...
Bugfix/nsurl components
2020-05-06 13:09:35 +02:00
Frederik Seiffert
5dfda50d82
Implement -[NSXMLParser initWithStream:].
2020-05-05 19:41:22 +02:00
Richard Frith-Macdonald
dcfe2a2ce3
Fix -[NSCharacterSet invertedSet] to work by calling -invert on a mutable copy
2020-05-05 09:51:34 +01:00
alotorev
4aa11f3e48
Improvements suggested by Fred Kiefer for the current pull request
2020-05-04 10:55:41 +03:00
alotorev
57f3dd66f6
Added tests to highlight some problems of the current implementation of NSURLQueryItems and NSURLComponent. The tests passed on OSX.
2020-05-04 01:23:28 +03:00
Artem Lotorev
56be28aa11
Fixed build issue due to wrong argument in the macro
2020-04-28 03:07:09 +03:00
Artem Lotorev
2e22bf344d
Added helper method for percent decoding/encoding tests
2020-04-28 02:27:18 +03:00
Artem Lotorev
4b53530b5c
Added test for [NSString stringByRemovingPercentEncoding], updated percent-encoding tests with PASS_EQUAL
2020-04-27 19:59:05 +03:00
fredkiefer
a48694941c
Add newer features for NSDateComponents and
...
started to clean up NSCalendar implementation.
2020-04-26 21:13:22 +02:00
Richard Frith-Macdonald
ccfb05525e
Merge branch 'master' of github.com:gnustep/libs-base
2020-04-21 09:03:25 +01:00
Richard Frith-Macdonald
cd68b7e4da
Add tests for notification equality
2020-04-21 09:02:34 +01:00
Richard Frith-Macdonald
6ee0cfff00
Add testcase for multiple clookies in a header. Fix error parsing a literal
...
string (writing nul terminator to read only memory)
2020-04-16 20:19:53 +01:00
Richard Frith-Macdonald
225de7f9b3
test the URL component character sets
2020-04-13 09:20:59 +01:00
Richard Frith-Macdonald
61bd73832f
use PASS_EQUAL for better diagnostics
2020-04-10 14:23:22 +01:00
Richard Frith-Macdonald
4bc622bafd
Add a few tests and fix a few warnings
2020-04-05 10:25:54 +01:00
Richard Frith-Macdonald
2a24e8d080
fixups for setting/getting nil/empty query string values
2020-04-04 22:37:40 +01:00
fredkiefer
b0c763de36
Build the string instead of the URL.
...
Build the URL on the fly.
2020-04-04 20:33:55 +02:00
Gregory John Casamento
d691df9cbf
Fix error in test compilation
2020-04-04 12:34:15 -04:00
Gregory John Casamento
213344d862
Add tests and modifications to pass them
2020-04-04 12:15:17 -04:00
Gregory John Casamento
564f61d572
Add tests for NSURLComponents
2020-04-04 09:44:22 -04:00
Niels Grewe
115d41738a
NSBundle tests: Rely on executable -rpath, not on TestInfo environment
2020-03-09 07:43:14 +01:00
Niels Grewe
62cd15a74c
NSBundle tests: fix framework linkage with older linkers
2020-03-08 13:24:03 +01:00
fredkiefer
eda24a2c02
Set test framework version to two.
2020-03-07 10:49:26 +01:00
fredkiefer
baa8e2465b
Extend NSBundle test to check for framework resource loading.
2020-03-01 10:41:14 +01:00
Richard Frith-Macdonald
0cd9843f5f
workaround for conflisct with clang/unistd.h
2020-02-08 16:37:42 +00:00
Frederik Seiffert
d8565b075f
Skip NSHashTable/NSMapTable weak objects tests if ARC is unavailable
2019-12-10 11:57:50 +01:00
Fred Kiefer
260a2cb969
Merge branch 'master' into add-weak-table-tests
2019-12-07 11:00:44 +01:00