Commit graph

12373 commits

Author SHA1 Message Date
Frederik Carlier
94cf2026b6
Merge pull request #390 from qmfrederik/rocky-build
Add a CI job for Rocky Linux 9
2024-04-29 19:48:32 +02:00
Frederik Carlier
92e4e3fafe
Add Rocky Linux build leg 2024-04-29 17:36:07 +02:00
Frederik Carlier
7f2670b946
Run CI on Ubuntu 22.04 in a container 2024-04-29 17:36: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
rfm
a5beb6ab31 Fix for bug #399 2024-04-29 13:11:35 +01:00
hmelder
53b02bab91 Generate configure and config.h.in 2024-04-28 23:22:20 +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
hmelder
10eaba4f13 Fix dummy function signature 2024-04-28 23:22:20 +02:00
hmelder
8ec158ad05 Guard Windows Header Include 2024-04-28 23:22:20 +02:00
hmelder
8a93628ecb NSThread: Fix behaviour and Implement 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
Frederik Carlier
6f9af4349c
Merge pull request #391 from qmfrederik/disable-clang-1.9-build
Remove Ubuntu x64 Clang gnustep-1.9 build leg
2024-04-28 20:04:47 +02:00
rfm
4f24e0e35d
Merge pull request #389 from qmfrederik/rocky-check
Use AC_SEARCH_LIBS instead of AC_CHECK_LIB for sframe
2024-04-28 10:31:38 +01:00
Gregory John Casamento
7721da047d Minor update: Remove implemented macros/errors 2024-04-26 08:47:02 -04:00
Gregory John Casamento
795fe13b61 Merge branch 'master' of github.com:gnustep/libs-base 2024-04-21 11:56:23 -04:00
Gregory John Casamento
ec8e784f82 Quick Fix: Add macro for macOS14, Sonoma 2024-04-21 11:56:17 -04:00
Frederik Carlier
810a39b1f8
Map CURLE_COULDNT_CONNECT to NSURLErrorCannotConnectToHost (#388)
Map `CURLE_COULDNT_CONNECT` to `NSURLErrorCannotConnectToHost`.

When connecting to an IPv6 socket fails, curl easy will return `CURLE_COULDNT_CONNECT`.  GNUstep currently maps `easyCode == CURLE_COULDNT_CONNECT && failureErrno == ETIMEDOUT` to `NSURLErrorTimedOut`, in all other scenarios `CURLE_COULDNT_CONNECT` is not handled.

This would cause the `NSURLSession/test01` to fail on (certain) systems with IPv6 enabled.

This PR maps all other values of `CURLE_COULDNT_CONNECT` to `NSURLErrorCannotConnectToHost`.
Additionally, it also stores the value of `easyCode` in the `NSUnderlyingErrorKey` to make troubleshooting (slightly) easier.
2024-04-21 10:26:24 +01:00
Frederik Carlier
53e2d9ba03
Remove Ubuntu x64 Clang gnustep-1.9 build leg
This build has been broken for a while, and I'm going to assume most users are on the 2.0 ABI by now.
2024-04-20 20:18:16 +00:00
Frederik Carlier
e0af8f8035
Use AC_SEARCH_LIBS instead of AC_CHECK_LIB for sframe
Make it optional, this library is not available on Enterprise linux
2024-04-20 20:07:56 +00:00
hmelder
1d33c2095f Fix formatting 2024-04-17 23:32:56 +02:00
hmelder
279d91e0f3 NSTimeZone: Import NSScanner 2024-04-17 23:32:56 +02:00
hmelder
2918bd992e Refactor +[NSTimeZone timeZoneArray] 2024-04-17 23:32:56 +02:00
Frederik Seiffert
7842a79839 Removed obsolete GS_ARC_COMPATIBLE define (replaced by OBJC_CAP_ARC) 2024-04-15 09:55:14 +02:00
Frederik Seiffert
ec8a7a3e97 Add +[NSObject _TrivialAllocInit] to enable fast-path alloc / init methods with libobjc2 2.2 2024-04-15 09:55:14 +02:00
rfm
dc688a1586 restore accidentally deleted check 2024-04-14 14:20:43 +01:00
rfm
4515e4a28b libsframe needed on some systems 2024-04-14 14:14:55 +01: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
b9ae7bf03c
Merge pull request #332 from qmfrederik/fixes/blocks-header-detection
Use `__has_include` to choose between <Block.h> and <objc/blocks_runtime.h>
2024-04-14 11:46:12 +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
rfm
6df6b1cb97 Add libzstd because newer bfd libraries depend on it 2024-04-12 14:32:29 +01:00
rfm
9be55cc80a
Merge pull request #379 from svgol/refactor_NSURLConnection_tests
Refactor NSURLConnection tests
2024-04-04 13:39:07 +01:00
rfm
d573c02c9c check buildng preserves multipart order 2024-04-04 11:27:57 +01:00
rfm
a2b8f34661 Some web servers send empty headers ... tolerate it. 2024-04-04 10:59:00 +01:00
Gregory Casamento
3c1db49f4f
Merge pull request #384 from qmfrederik/dummy-nsnetservices 2024-04-03 23:49:03 -04:00
rfm
d52708e020 Fix for #385 2024-04-02 11:07:14 +01:00
Frederik Carlier
97c01d8064
NSNetService and NSNetServiceBrowser: Gracefully fail when no-backend implementation
Always compile `NSNetService` and `NSNetServiceBrowser`, but have their
`intialize` method return `nil` if libavahi and mDNS are unavailable.

This:
- Results in a clear error message if code which was compiled against a
  copy of GNUstep with avahi/mDNS support runs on a copy of GNUstep which
  doesn't have avahi/mDNS support.
- Avoids code which uses `NSNetService` or `NSNetServiceBrowser` to
  successfully compile (because the classes are defined in the header)
  but then failing to link (because there is no implementation for these
  classes).
2024-03-31 11:37:23 +00:00
Frederik Carlier
3415de14c0 Tests/base/NSURL/basic.m: Use https://gnustep.github.io instead of http://example.com
http://example.com/silly-file-name is currently returning 500 instead of 404, breaking tests.  Use https://gnustep.github.io instead.
2024-03-30 16:01:02 +00:00
Frederik Carlier
07d17a16a7 Generate pkg-config configuration file for libs-base
This commit generates a `gnustep-base.pc` file which is installed in `/lib/pkgconfig` and contains the GNUstep base version number, the libraries to link (equivalent to `gnustep-config --base-libs`) with and the C flags to use (equivalent to `gnustep-config --objc-flags`).
2024-03-30 15:56:22 +00:00
Sergei Golovin
b963a79d95 update the actual mail address 2024-03-11 19:18:58 +04:00
Sergei Golovin
81108c46f5 Update Tests/base/NSURLConnection/Helpers/SimpleWebServer.m
Co-authored-by: Hugo Melder <service@hugomelder.com>
2024-03-11 19:18:58 +04:00
Sergei Golovin
2b086b335d Update Tests/base/NSURLConnection/Helpers/SimpleWebServer.m
Co-authored-by: Hugo Melder <service@hugomelder.com>
2024-03-11 19:18:58 +04:00
Sergei Golovin
1db3a482fb disable HTTPS tests if no gnutls is found 2024-03-11 19:18:58 +04:00
Sergei Golovin
70b4c87af6 fix a possible memory leak 2024-03-11 19:18:58 +04:00
Sergei Golovin
9ca1f91e2d fix memory leak 2024-03-11 19:18:58 +04:00
Sergei Golovin
0e72736b12 fix memory leak 2024-03-11 19:18:58 +04:00
Sergei Golovin
cbfcf6d8cf remove obsoleted files 2024-03-11 19:18:58 +04:00
Sergei Golovin
1284446609 release memory when done with it 2024-03-11 19:18:58 +04:00
Sergei Golovin
2d55f14799 restore connection closing on client request
listening ports are made different by one of previous commits
  so a hanging out instance is no issue for consequent tests
2024-03-11 19:18:58 +04:00
Sergei Golovin
30a8cfd2b9 simplified with one hunk of code instead of two 2024-03-11 19:18:58 +04:00