Port the /proc-based test helpers: thread counts come from
Toolhelp32Snapshot and descriptor counts from GetProcessHandleCount on
Windows. Allowlist Runtime for the Windows target.
Windows cross build under Wine 11 (x86_64-w64-mingw32 GCC 16.2):
Runtime;Testing 837 tests, 831 passed, 6 skipped, 0 failed.
Add a private dlopen/dlsym/dlclose compatibility shim over LoadLibraryW /
GetProcAddress and use it from the loader, host and manager. Allowlist
Plugin for the Windows target.
Verified with the Windows cross build under Wine 11
(x86_64-w64-mingw32 GCC 16.2): Plugin suite 6 tests, 5 passed, 1 skipped,
0 failed.
- AsyncWatcher: implement Windows path probing (size, mtime, type,
symlink target through std::filesystem) - it was a no-op, so polling
watchers never observed changes.
- ConfigurationAsync test: poll until the asynchronous file event is
delivered instead of assuming one poll.
- SystemAsync shutdown test: skip on Windows (POSIX process helper).
Windows cross build under Wine 11 (x86_64-w64-mingw32 GCC 16.2):
1178 tests, 1162 passed, 16 skipped, 0 failed.
Fix the Windows compatibility layer: open files in binary mode (WAL data
was being CRLF-translated), replace destination on rename like POSIX,
use handle-backed directory descriptors so FlushFileBuffers works, and
enforce O_NOFOLLOW via reparse-point checks. The Storage test's symlink
setup is now portable. Allowlist Storage for the Windows target.
Windows cross build under Wine 11 (x86_64-w64-mingw32 GCC 16.2): the
Storage suites pass (5 passed, 1 skipped); the remaining failures in the
full run are IO tests that need the Linux-only native backend.
Ship SQLite 3.49.1 (sqlite3.c/h, public domain) under third_party/sqlite
and use it as the default VOID_SQLITE3_AMALGAMATION_DIR, so Void::Sqlite
builds the same way on Linux and Windows without a system SQLite3 package
or a network fetch. Allowlist Sqlite for the Windows target.
Also compare the SQLite native error category by name: on Windows the
library and its consumer are separate DLLs, so the category singleton is
not shared across the boundary.
Verified: Linux Sqlite+Testing 419 tests (416 passed, 3 skipped);
Windows cross build under Wine 11 (x86_64-w64-mingw32 GCC 16.2) 419 tests
(415 passed, 4 skipped, 0 failed).
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
- 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