Closed kgodzwox closed 1 year ago
I think it needs to clear vfu_ctx.migration back to NULL before returning, since vfu_ctx is a global variable.
@kgodzwox, can you confirm this patch fixes the issue? If so I'll create a pull request for it.
diff --git a/test/unit-tests.c b/test/unit-tests.c
index cdb88a2..81e53ca 100644
--- a/test/unit-tests.c
+++ b/test/unit-tests.c
@@ -601,6 +601,7 @@ test_device_is_stopped_and_copying(UNUSED void **state)
assert_false(r);
}
}
+ vfu_ctx.migration = NULL;
}
static void
@jimharris I confirmed your patch fixes compilation.
I also confirm this
The pull request was merged, this issue can be closed. Thanks!
Hi. A compilation error occurs on Fedora 38 with GCC13 (gcc 13.1.1 "cc (GCC) 13.1.1 20230511 (Red Hat 13.1.1-2)") for
test/unit-tests.c
file.