diff options
Diffstat (limited to 'tests/vb2_ec_sync_tests.c')
-rw-r--r-- | tests/vb2_ec_sync_tests.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/vb2_ec_sync_tests.c b/tests/vb2_ec_sync_tests.c index 5123ea76..eae83b0c 100644 --- a/tests/vb2_ec_sync_tests.c +++ b/tests/vb2_ec_sync_tests.c @@ -213,7 +213,7 @@ static void VbSoftwareSyncTest(void) /* Check flag toggling */ ResetMocks(); test_ssync(VB2_SUCCESS, 0, "Normal sync"); - TEST_NEQ(sd->flags & VB2_SD_STATUS_EC_SYNC_COMPLETE, 0, + TEST_NEQ(sd->status & VB2_SD_STATUS_EC_SYNC_COMPLETE, 0, " EC sync complete"); TEST_EQ(ec_ro_updated, 0, " ec ro updated"); TEST_EQ(ec_rw_updated, 0, " ec rw updated"); @@ -226,7 +226,7 @@ static void VbSoftwareSyncTest(void) TEST_EQ(ec_vboot_done_calls, 1, "ec_vboot_done calls"); ResetMocks(); - sd->flags |= VB2_SD_STATUS_EC_SYNC_COMPLETE; + sd->status |= VB2_SD_STATUS_EC_SYNC_COMPLETE; test_ssync(VB2_SUCCESS, 0, "EC sync already complete"); TEST_EQ(ec_ro_updated, 0, " ec ro updated"); TEST_EQ(ec_rw_updated, 0, " ec rw updated"); @@ -238,7 +238,7 @@ static void VbSoftwareSyncTest(void) ResetMocks(); ctx->flags &= ~VB2_CONTEXT_EC_SYNC_SUPPORTED; test_ssync(VB2_SUCCESS, 0, "EC sync not supported"); - TEST_NEQ(sd->flags & VB2_SD_STATUS_EC_SYNC_COMPLETE, 0, + TEST_NEQ(sd->status & VB2_SD_STATUS_EC_SYNC_COMPLETE, 0, " EC sync complete"); TEST_EQ(ec_ro_updated, 0, " ec ro updated"); TEST_EQ(ec_rw_updated, 0, " ec rw updated"); @@ -250,7 +250,7 @@ static void VbSoftwareSyncTest(void) ResetMocks(); gbb.flags |= VB2_GBB_FLAG_DISABLE_EC_SOFTWARE_SYNC; test_ssync(VB2_SUCCESS, 0, "EC sync disabled by GBB"); - TEST_NEQ(sd->flags & VB2_SD_STATUS_EC_SYNC_COMPLETE, 0, + TEST_NEQ(sd->status & VB2_SD_STATUS_EC_SYNC_COMPLETE, 0, " EC sync complete"); TEST_EQ(ec_ro_updated, 0, " ec ro updated"); TEST_EQ(ec_rw_updated, 0, " ec rw updated"); |