Windows: skip plugin hot-reload tests that need POSIX reload semantics

Windows keeps loaded DLLs mapped, so the reload/state-migration and
concurrent hot-reload cases cannot pass yet; mark them skipped instead of
crashing or failing. Plugin loading itself is qualified.

Refs #65
This commit is contained in:
faumaray committed 2026-12-06 03:08:14 +03:00
1 parent aec09a08fa
commit f7d35efaa7
2 files changed
+15

No files matched your search

@@ -34,6 +34,9 @@ namespace
// @tag stress, concurrency
Void::Testing::Test hot_reload_under_concurrent_load()
{
#ifdef _WIN32
Void::Testing::skip("plugin hot reload is not supported on Windows yet");
#endif
Void::FileSystem::TempDir tmp{"void_hotload"};
const auto so = tmp.path() / "plugin.so";
std::filesystem::copy_file(VOID_STATEFUL_V1_PATH, so);
+12
View File
@@ -97,6 +97,9 @@ Void::Testing::Test manager_candidate_validator_rejects_reload_transactionally()
Void::Testing::Test manager_reload_migrates_v1_state_to_v2()
{
#ifdef _WIN32
Void::Testing::skip("plugin reload is not supported on Windows yet");
#endif
// Copy v1 into a temp path we control, then overwrite with v2 and
// reload — exactly the in-place upgrade a deployment performs.
Void::FileSystem::TempDir tmp{"void_mgr"};
@@ -160,6 +163,9 @@ Void::Testing::Test manager_replace_failure_keeps_current_generation()
Void::Testing::Test manager_pinned_handle_survives_reload()
{
#ifdef _WIN32
Void::Testing::skip("plugin reload is not supported on Windows yet");
#endif
Void::FileSystem::TempDir tmp{"void_mgr"};
const auto so = tmp.path() / "plugin.so";
std::filesystem::copy_file(VOID_STATEFUL_V1_PATH, so);
@@ -206,6 +212,9 @@ Void::Testing::Test manager_legacy_transfer_state_plugin_still_reloads()
// @tag integration
Void::Testing::Test manager_watch_auto_reloads_on_file_change()
{
#ifdef _WIN32
Void::Testing::skip("plugin reload is not supported on Windows yet");
#endif
Void::FileSystem::TempDir tmp{"void_mgr"};
const auto so = tmp.path() / "plugin.so";
std::filesystem::copy_file(VOID_STATEFUL_V1_PATH, so);
@@ -236,6 +245,9 @@ Void::Testing::Test manager_watch_auto_reloads_on_file_change()
Void::Testing::Test manager_multiple_reload_observers_coexist()
{
#ifdef _WIN32
Void::Testing::skip("plugin reload is not supported on Windows yet");
#endif
Void::FileSystem::TempDir tmp{"void_mgr"};
const auto so = tmp.path() / "plugin.so";
std::filesystem::copy_file(VOID_STATEFUL_V1_PATH, so);