aboutsummaryrefslogtreecommitdiff
path: root/test/unit-tests.c
diff options
context:
space:
mode:
authorJag Raman <jag.raman@oracle.com>2022-05-23 08:15:47 -0400
committerGitHub <noreply@github.com>2022-05-23 13:15:47 +0100
commitb52bff72d4eb646a453d19e19ddbd13ed6111a09 (patch)
tree493045e75edc44a0696dfaffd84896a8e0cdaf7f /test/unit-tests.c
parentb427c6084311f0c620bf4afe7746739e8c887977 (diff)
downloadlibvfio-user-b52bff72d4eb646a453d19e19ddbd13ed6111a09.zip
libvfio-user-b52bff72d4eb646a453d19e19ddbd13ed6111a09.tar.gz
libvfio-user-b52bff72d4eb646a453d19e19ddbd13ed6111a09.tar.bz2
libvfio-user.h: sync VFIO_DEVICE_STATE_XXXX definitions with upstream (#690)
Rename VFIO_DEVICE_STATE_XXXX defines as VFIO_DEVICE_STATE_V1_XXXX. Upstream renamed these variable to be of the XXXX_V1_XXXX format and switched an enum for VFIO_DEVICE_STATE_XXXX. Signed-off-by: Jagannathan Raman <jag.raman@oracle.com> Reviewed-by: John Levon <john.levon@nutanix.com> Reviewed-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'test/unit-tests.c')
-rw-r--r--test/unit-tests.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit-tests.c b/test/unit-tests.c
index 7d5297e..6b16fe6 100644
--- a/test/unit-tests.c
+++ b/test/unit-tests.c
@@ -590,13 +590,13 @@ test_device_is_stopped_and_copying(UNUSED void **state)
}
migration.info.device_state = i;
bool r = device_is_stopped_and_copying(vfu_ctx.migration);
- if (i == VFIO_DEVICE_STATE_SAVING) {
+ if (i == VFIO_DEVICE_STATE_V1_SAVING) {
assert_true(r);
} else {
assert_false(r);
}
r = device_is_stopped(vfu_ctx.migration);
- if (i == VFIO_DEVICE_STATE_STOP) {
+ if (i == VFIO_DEVICE_STATE_V1_STOP) {
assert_true(r);
} else {
assert_false(r);