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
5120069a88
Fix running tests under Windows MSVC
...
Remove -rpath flag when running tests with MSVC toolchain to fix build errors for tests as there is no rpath on Windows, and instead add object directory to PATH for Windows to find DLLs.
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