summaryrefslogtreecommitdiff
path: root/tests/vboot_common_tests.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/vboot_common_tests.c')
-rw-r--r--tests/vboot_common_tests.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/vboot_common_tests.c b/tests/vboot_common_tests.c
index 8ca49a68..225d0bbb 100644
--- a/tests/vboot_common_tests.c
+++ b/tests/vboot_common_tests.c
@@ -220,8 +220,10 @@ static void VbSharedDataTest(void)
TEST_EQ(d->kernel_version_lowest, 0,
"VbSharedDataInit kernel_version_lowest");
- TEST_NEQ(VBOOT_SUCCESS, VbSharedDataSetKernelKey(NULL, NULL),
- "VbSharedDataSetKernelKey null");
+ TEST_EQ(VBOOT_SHARED_DATA_INVALID, VbSharedDataSetKernelKey(NULL, NULL),
+ "VbSharedDataSetKernelKey sd null");
+ TEST_EQ(VBOOT_PUBLIC_KEY_INVALID, VbSharedDataSetKernelKey(d, NULL),
+ "VbSharedDataSetKernelKey pubkey null");
}
int main(int argc, char* argv[])