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
This commit is contained in:
faumaray committed 2026-12-05 15:57:12 +03:00
1 parent c085822686
commit bd5488b15b
16 files changed
+196 -31

No files matched your search

+8 -2
View File
@@ -108,6 +108,9 @@ Void::Testing::Test remove_path_handles_missing_and_recursive()
Void::Testing::Test filesystem_file_lock_symlink_swap_reflink_and_timestamps()
{
#ifdef _WIN32
Void::Testing::skip("POSIX-only filesystem semantics");
#else
Void::FileSystem::TempDir tmp{"void_fs_vl010_"};
// 1. RAII advisory FileLock (shared & exclusive, blocking & try_lock)
@@ -220,6 +223,7 @@ Void::Testing::Test filesystem_file_lock_symlink_swap_reflink_and_timestamps()
Void::Testing::expect_eq(static_cast<std::int64_t>(st_link.st_mtim.tv_sec),
kLinkMtime);
}
#endif
}
namespace
@@ -455,11 +459,13 @@ Void::Testing::Test read_file_bounded_handles_empty_binary_and_limits()
std::string::npos);
}
#ifndef _WIN32
// A stream that keeps producing data after open must be cut off by the
// per-chunk check even though it has no initial size to validate.
Void::Testing::Test read_file_bounded_rejects_growth_past_limit()
{
#ifdef _WIN32
Void::Testing::skip("POSIX fifo semantics");
#else
ScopedTestDir dir{"bounded_growth"};
const auto fifo = dir.path / "stream";
Void::Testing::require(::mkfifo(fifo.c_str(), 0600) == 0);
@@ -488,5 +494,5 @@ Void::Testing::Test read_file_bounded_rejects_growth_past_limit()
Void::Testing::require(!result.has_value());
Void::Testing::expect(result.error().message().find("limit") !=
std::string::npos);
}
#endif
}