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.
This commit is contained in:
1 parent
501b6813bc
commit
695c9b6be2
6 files changed
+58
-6
No files matched your search
@@ -37,6 +37,18 @@ function(_void_test_requires_satisfied src_file active_modules active_headers ou
|
||||
return()
|
||||
endif()
|
||||
endif()
|
||||
# Whole-file OpenSSL gate: files that build signed fixtures with OpenSSL
|
||||
# headers cannot be compiled where OpenSSL development files are absent
|
||||
# (for example the Windows qualification environment).
|
||||
if(NOT TARGET OpenSSL::Crypto)
|
||||
string(FIND "${_src_content}" "// @requires-openssl" _needs_openssl)
|
||||
if(NOT _needs_openssl EQUAL -1)
|
||||
message(STATUS
|
||||
"[VoidTests] Skipping ${src_file} (requires OpenSSL)")
|
||||
set(${out_var} FALSE PARENT_SCOPE)
|
||||
return()
|
||||
endif()
|
||||
endif()
|
||||
string(REGEX MATCHALL "#[ \t]*include[ \t]*[<\"](Void/[^/\">]+/[^>\"]+)[>\"]"
|
||||
_matches "${_src_content}")
|
||||
set(_ok TRUE)
|
||||
|
||||
Reference in new issue
Block a user