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
@@ -280,6 +280,13 @@ Void::Testing::Test update_replay_floor_and_trust_store_rotation_revocation()
|
||||
|
||||
Void::Testing::Test update_coordinator_install_rollback_pins_cleanup_pending_and_reconcile()
|
||||
{
|
||||
#ifndef VOID_ARCHIVE_HAS_LIBARCHIVE
|
||||
#define VOID_ARCHIVE_HAS_LIBARCHIVE 0
|
||||
#endif
|
||||
#if !VOID_ARCHIVE_HAS_LIBARCHIVE
|
||||
Void::Testing::skip(
|
||||
"needs the LibArchive backend to build a compressed .tar.zst fixture");
|
||||
#endif
|
||||
Void::FileSystem::TempDir tmp{"void_update_coord_"};
|
||||
const auto pkg_dir = tmp / "packages";
|
||||
const auto store_dir = tmp / "store";
|
||||
|
||||
Reference in new issue
Block a user