Commit Graph
19 Commits
Author SHA1 Message Date
faumaray 7d9884d86b Tests: build the pure-C ABI plugin fixtures on Windows
The V1 fixture gets a small pthread/nanosleep shim over
_beginthreadex and CRITICAL_SECTION, so the C ABI hardening suite
runs on Windows too (+5 tests). The fixture block is no longer
gated to non-Windows.
2026-12-06 16:54:41 +03:00
faumaray 7cddcf15ea Testing: implement subprocess isolation on Windows
current_executable_path uses GetModuleFileNameW, and
run_isolated_subprocess mirrors the POSIX semantics with CreateProcessW:
redirected stdout/stderr pipes drained without deadlock, a suspended start
so job-object CPU/address-space limits are in force before the child runs,
deadline termination, bounded capture with truncation, and crash mapping
from NTSTATUS exit codes (CRT abort reports SIGABRT).

The resource-limit assertion stays POSIX-only because Wine does not
enforce job-object memory limits.
2026-12-06 16:41:56 +03:00
faumaray 9e94d8e484 Docs: record the current Windows Wine run (2003 tests, 16 skipped) 2026-12-06 16:30:36 +03:00
faumaray b3c959b920 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.
2026-12-06 14:56:26 +03:00
faumaray 8440770035 Windows: qualify SqliteAsync
Its dependencies (Sqlite, Async, Time, Functional) are already qualified.

Windows cross build under Wine 11 (x86_64-w64-mingw32 GCC 16.2):
620 tests, 616 passed, 4 skipped, 0 failed.
2026-12-06 04:01:55 +03:00
faumaray 695c9b6be2 Update: qualify on Windows
- Install.cpp: open the staging download with _wopen in binary mode and
  use _commit instead of fsync on Windows (O_EXCL already rejects a
  pre-existing entry, so O_NOFOLLOW has no Windows equivalent to keep).
- tests: add a @requires-openssl gate for files that sign fixtures with
  OpenSSL headers (unavailable in the Windows environment), and skip the
  compressed-package fixture when the Archive backend has no LibArchive.

Verified: Windows cross build under Wine 11 (x86_64-w64-mingw32 GCC 16.2)
966 tests, 954 passed, 12 skipped, 0 failed; Linux Update+Testing 982
tests, 978 passed, 4 skipped, 0 failed. Allowlist Update for Windows.
2026-12-06 04:00:50 +03:00
faumaray 501b6813bc Windows: gate the FSM/service hot-reload test to POSIX
It reloads stateful plugin shared objects through dlfcn semantics, which
Windows cannot do yet, so mark it @requires-posix instead of compiling a
empty test TU that the scanner still references.

Full Windows allowlisted set in one binary (Release) under Wine 11:
1851 tests, 1826 passed, 25 skipped, 0 failed.
2026-12-06 03:55:20 +03:00
faumaray bf4b693c7c IPC: portable local transport on Windows
Add TransportWindows.cpp: the Windows endpoint is a loopback TCP listener
(IO's Windows streams are socket based) whose port is published in the
endpoint file. Peer identity comes from the system TCP table (owning PID)
plus the process token's user SID, the endpoint file is restricted to the
current user, and the startup lock uses the CRT lock on the lock file.

Transport.cpp keeps the POSIX implementation and is guarded to !_WIN32.
adopt_pipe_pair is not implemented on Windows yet (needs a pipe-capable IO
stream). The AF_UNIX/fork-based test is POSIX-only and the session
close-during-cancel test is skipped on Windows (it hangs under Wine).
Add a portable endpoint test covering listen, duplicate rejection, policy
denial, connect, accept and peer credentials.

Verified: Linux IPC+Testing 4/4 IPC tests pass. Windows cross build under
Wine 11 (x86_64-w64-mingw32 GCC 16.2): 693 tests, 685 passed, 8 skipped,
0 failed. Allowlist IPC for the Windows target.
2026-12-06 03:49:18 +03:00
faumaray 76ae5aeba0 docs: record the qualified Windows module set
Update the Windows target table to the allowlisted modules and note the
remaining gaps (IPC, Update, ShortUrlStorage, external-dependency
modules), the vendored SQLite amalgamation, and the Plugin test skips.

Refs #65
2026-12-06 03:21:15 +03:00
faumaray 482a3ea46b System: add a Windows DirectoryWatcher backend
Implement DirectoryWatcher on Windows with ReadDirectoryChangesW: one
recursive handle, a dedicated watcher thread feeding a bounded queue, a
condition variable for poll timeouts, rename pairing, ignore filtering
and RescanRequired on buffer overflow. rescan cancels the pending read
and clears the queue; wake/simulate hooks work as on Linux.

Tests run on both platforms with platform-appropriate watch-count and
overflow expectations.

Verified under Wine 11 (x86_64-w64-mingw32 GCC 16.2): full VoidTests.exe
suite passes (1337 tests, 1325 passed, 12 skipped, 0 failed). Linux
System+Testing suite unchanged (477 tests, 474 passed).

Closes #65
2026-12-06 01:01:28 +03:00
faumaray a48c745438 Archive: run the staging implementation on Windows
Add a POSIX compatibility layer for the Windows build of StagedArchive:
directory descriptors are synthetic path handles, file IO uses the CRT
with UTF-8 to wide path conversion, fstatat/fstat/mkdirat/unlinkat/fsync
are emulated, and publication uses MoveFileExW without replace. The
isolated worker keeps its POSIX rlimit path (guarded) and RSS reporting
returns no value on Windows. Allowlist Archive for the Windows target.

Cross-built with x86_64-w64-mingw32 GCC 16.2: Void_Archive and
VoidTests.exe link with no errors. Linux Archive suite: 10/10 pass.

Refs #65
2026-12-05 16:13:57 +03:00
faumaray bd5488b15b Windows: qualify Configuration, Crypto and System
- Allowlist Configuration, Crypto and System for the Windows target.
- System: link winmm for the Win32 audio backend; include windows.h before
  mmsystem.h.
- Tests: add a whole-file // @requires-posix gate (CMake path and the VBS
  build.cpp) and mark the POSIX-only System suites; skip helper-based cases
  on Windows; make setenv/unsetenv and getpid portable.
- The POSIX process helper is no longer built on Windows.

Cross-built with x86_64-w64-mingw32 GCC 16.2: all modules and VoidTests.exe
link. Linux System+Testing suite still passes (477 tests, 474 passed).

Refs #65
2026-12-05 15:57:12 +03:00
faumaray f8c62c9851 Build: qualify Alpine/musl test suite (refs #38) 2026-12-03 17:51:20 +03:00
faumaray f0820b778f Build: qualify wasm test suite with portable libc++ fallbacks (refs #38) 2026-12-03 17:43:14 +03:00
faumaray 1ba60d5d6a Build: gate reflection-only tests on VOID_HAS_CXX26_REFLECTION (refs #38) 2026-12-03 17:29:04 +03:00
faumaray b1933d9906 Build: qualify wasm library subset with Emscripten (refs #38) 2026-12-03 17:18:29 +03:00
faumaray 9f8c56a7ee Build: qualify Alpine/musl target support (refs #38) 2026-12-03 17:16:29 +03:00
faumaray 5d4589056a Build: qualify Windows runtime and fix MinGW portability (refs #38) 2026-12-03 17:07:16 +03:00
faumaray 1335fa86c3 Build: qualify target support (closes #38) 2026-12-03 16:43:25 +03:00