Windows: full module parity and runtime-qualified test suite

- Net/IO: Winsock sockets (UdpSocket, TlsClientStream, WebSocketClient),
  HttpServer port with a loopback wake socket replacing eventfd, and the
  select-based IO backend built on Windows (ws2_32).
- Net: implement StaticFileResolver::open_safe and OpenedStaticFile on
  Windows (reparse-point rejection plus canonical containment check on the
  opened handle) and widen native handles to intptr_t.
- Plugin: hot reload works on Windows by loading a fresh copy while the old
  DLL stays mapped; enable the reload, discovery and FSM service reload
  tests and retire the plugin file by rename instead of replacement.
- Update: activation pointer as a directory junction on Windows.
- Stacktrace: portable path comparison for wide native strings.
- Docs/targets: every module allowlisted on Windows; record the Wine run
  (2000 tests, 1977 passed, 23 skipped, 0 failed).
- CMake: add -Wa,-mbig-obj for GNU MinGW targets (COFF section limit).
- Async: fix the FuturePool stopped-after-close test to wait for the
  executor to release its admission slot instead of racing it.

Windows and Linux suites both pass: Windows 2000/1977/23 skips/0 failed,
Linux 2027/2023/4 skips/0 failed.
This commit is contained in:
faumaray committed 2026-12-06 14:56:26 +03:00
1 parent 1b1947340f
commit b3c959b920
32 files changed
+1836 -401

No files matched your search

+8 -8
View File
@@ -38,10 +38,10 @@ namespace
Void::Testing::require(ctx != nullptr);
Void::Testing::require(
SSL_CTX_use_certificate_file(
ctx, cert.cert_file.c_str(), SSL_FILETYPE_PEM) == 1);
ctx, cert.cert_file.string().c_str(), SSL_FILETYPE_PEM) == 1);
Void::Testing::require(
SSL_CTX_use_PrivateKey_file(
ctx, cert.key_file.c_str(), SSL_FILETYPE_PEM) == 1);
ctx, cert.key_file.string().c_str(), SSL_FILETYPE_PEM) == 1);
worker = std::thread(
[this, behavior = std::move(behavior)] {
const int connection = listener.accept_one();
@@ -55,7 +55,7 @@ namespace
SSL_shutdown(ssl);
}
SSL_free(ssl);
::close(connection);
::test_close_socket(connection);
});
}
@@ -88,7 +88,7 @@ namespace
char byte = 0;
while (::recv(connection, &byte, 1, 0) > 0) {
}
::close(connection);
::test_close_socket(connection);
});
}
@@ -221,7 +221,7 @@ Void::Testing::Test tls_client_never_falls_back_to_plaintext()
char buffer[64];
while (::recv(connection, buffer, sizeof(buffer), 0) > 0) {
}
::close(connection);
::test_close_socket(connection);
});
auto stream = Void::Net::TlsClientStream::connect(
make_options(listener.port));
@@ -329,10 +329,10 @@ Void::Testing::Test tls_client_starttls_upgrade()
SSL_CTX* ctx = SSL_CTX_new(TLS_server_method());
Void::Testing::require(ctx != nullptr);
Void::Testing::require(SSL_CTX_use_certificate_file(
ctx, cert.cert_file.c_str(),
ctx, cert.cert_file.string().c_str(),
SSL_FILETYPE_PEM) == 1);
Void::Testing::require(SSL_CTX_use_PrivateKey_file(
ctx, cert.key_file.c_str(),
ctx, cert.key_file.string().c_str(),
SSL_FILETYPE_PEM) == 1);
std::thread worker([&listener, ctx] {
const int connection = listener.accept_one();
@@ -356,7 +356,7 @@ Void::Testing::Test tls_client_starttls_upgrade()
SSL_shutdown(ssl);
}
SSL_free(ssl);
::close(connection);
::test_close_socket(connection);
});
auto options = make_options(listener.port, cert.cert_file.string());