Commit Graph
13 Commits
Author SHA1 Message Date
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