diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/rollback_index2_tests.c | 6 | ||||
-rw-r--r-- | tests/rollback_index3_tests.c | 2 | ||||
-rw-r--r-- | tests/vboot_api_kernel4_tests.c | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/tests/rollback_index2_tests.c b/tests/rollback_index2_tests.c index 1a07cb02..384895fb 100644 --- a/tests/rollback_index2_tests.c +++ b/tests/rollback_index2_tests.c @@ -938,19 +938,19 @@ static void RollbackKernelTest(void) /* Test lock (recovery off) */ ResetMocks(0, 0); - TEST_EQ(RollbackKernelLock(), 0, "RollbackKernelLock()"); + TEST_EQ(RollbackKernelLock(0), 0, "RollbackKernelLock()"); TEST_STR_EQ(mock_calls, "TlclLockPhysicalPresence()\n", "tlcl calls"); ResetMocks(1, TPM_E_IOERROR); - TEST_EQ(RollbackKernelLock(), TPM_E_IOERROR, + TEST_EQ(RollbackKernelLock(0), TPM_E_IOERROR, "RollbackKernelLock() error"); /* Test lock with recovery on; shouldn't lock PP */ SetupTPM(1, 0, 0, 0, &rsf); ResetMocks(0, 0); - TEST_EQ(RollbackKernelLock(), 0, "RollbackKernelLock() in recovery"); + TEST_EQ(RollbackKernelLock(1), 0, "RollbackKernelLock() in recovery"); TEST_STR_EQ(mock_calls, "", "no tlcl calls"); } diff --git a/tests/rollback_index3_tests.c b/tests/rollback_index3_tests.c index 9434a5a7..2fc1f059 100644 --- a/tests/rollback_index3_tests.c +++ b/tests/rollback_index3_tests.c @@ -37,7 +37,7 @@ int main(int argc, char* argv[]) TEST_EQ(version, 0, "rkr version"); TEST_EQ(RollbackKernelWrite(0), 0, "RollbackKernelWrite()"); - TEST_EQ(RollbackKernelLock(), 0, "RollbackKernelLock()"); + TEST_EQ(RollbackKernelLock(0), 0, "RollbackKernelLock()"); return gTestSuccess ? 0 : 255; } diff --git a/tests/vboot_api_kernel4_tests.c b/tests/vboot_api_kernel4_tests.c index 81628a44..e2155f56 100644 --- a/tests/vboot_api_kernel4_tests.c +++ b/tests/vboot_api_kernel4_tests.c @@ -94,7 +94,7 @@ uint32_t RollbackKernelWrite(uint32_t version) return rkw_retval; } -uint32_t RollbackKernelLock(void) +uint32_t RollbackKernelLock(int recovery_mode) { return rkl_retval; } |