Commit graph

12945 commits

Author SHA1 Message Date
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
Sergei Golovin
9cb56a03a0 style tweak 2024-03-11 19:18:58 +04:00
Sergei Golovin
25f2df8374 remove commented out hunk 2024-03-11 19:18:58 +04:00
Sergei Golovin
450c545c2c fix memory leaks 2024-03-11 19:18:58 +04:00
Sergei Golovin
2ad623d0b3 use the macro AUTORELEASE instead of -autorelease 2024-03-11 19:18:58 +04:00
Sergei Golovin
da1d980d17 remove unnecessary method call 2024-03-11 19:18:58 +04:00
Sergei Golovin
d498642de5 pick the debug mode from environment 2024-03-11 19:18:57 +04:00
Sergei Golovin
1cf39479b6 update the pair certificate/key (the old pair is about to expire soon) 2024-03-11 19:18:57 +04:00
Sergei Golovin
5656be567a change ports auxilliary instances are listen to in consequent tests...
... to avoid "Address already in use"
2024-03-11 19:18:57 +04:00
Sergei Golovin
683bf4f707 use different server ports in tests to avoid errors like "address in use" 2024-03-11 19:18:57 +04:00
Sergei Golovin
151948312c remove debug log messages 2024-03-11 19:18:57 +04:00
Sergei Golovin
b60f950630 enable NSURLConnection tests with a local web server on Windows 2024-03-11 19:18:57 +04:00
Sergei Golovin
fc07538462 fix issue with HTTP socket wasn't freed at the end of request-response cycle
Connection closing by client demand doesn't work but
   it isn't important for purposes of testing so commented out
2024-03-11 19:18:57 +04:00
Sergei Golovin
a426fab700 change to use NSFileHandle instead of streams 2024-03-11 19:18:57 +04:00
Sergei Golovin
aae267ab13 update actual mail address 2024-03-11 19:18:57 +04:00
rfm
61da0dab96 fix possible dereference of null pointer 2024-03-11 14:36:22 +00:00
hmelder
f6d2806098 Update Changelog 2024-03-11 11:48:28 +01:00
hmelder
ca1d07dcf2 Implement +[NSDate now] 2024-03-11 11:48:28 +01:00
rfm
648f3e2dfb
Merge pull request #374 from qmfrederik/ci-mingw-libobjc2
Add CI leg for msys2/mingw64 using libobjc2 + gnustep-2.0 ABI
2024-03-07 09:54:27 +00:00
rfm
88b73acd8b more leak fixes 2024-03-04 11:52:42 +00:00
rfm
e8813346e5 more leak fixes 2024-03-04 10:49:58 +00:00
rfm
619f902e9b ileak fix 2024-03-04 10:21:35 +00:00
Frederik Carlier
d609147bc2 Avoid -rpath on Windows 2024-02-21 08:45:58 +01:00
Frederik Carlier
924960a613 Add CI leg using MinGW64 + libobjc2 + clang 2024-02-21 08:45:58 +01:00
rfm
cd2626e26b Attept fix for deadlock 2024-02-20 16:05:58 +00:00
rfm
f071a8c7d0 imprve debug info a little 2024-02-20 10:08:43 +00:00
ethanc8
a15fa66276 Stylistic changes in -[NSString enumerateSubstringsInRange:options:usingBlock:] 2024-02-17 19:11:05 -06:00
rfm
d988153800 Fix for #361 2024-02-16 14:26:41 +00:00
rfm
6052d4e8ae adjust for difference between windows and unix 2024-02-15 13:45:39 +00:00
rfm
01573cb25e add simple tests for create/reading/remove empty file 2024-02-15 11:16:20 +00:00
rfm
87fc1f5e2e include unistd.h (jcaselman-keysight) 2024-02-13 17:25:50 +00:00
rfm
92660a5937 Make extra event operate for winsock only 2024-02-13 17:18:42 +00:00
rfm
c4e5ea3d42 partial revert for regression on unix 2024-02-13 16:28:28 +00:00