From 5ecfe2c8aa58a170aac2d9a9c22d7ffb3cc9442a Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Wed, 9 Oct 2013 23:25:03 +0200 Subject: mock: Minor testing tweaks to mock testing --- p11-kit/tests/test-mock.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'p11-kit/tests') diff --git a/p11-kit/tests/test-mock.c b/p11-kit/tests/test-mock.c index 079ff0d..8454f1f 100644 --- a/p11-kit/tests/test-mock.c +++ b/p11-kit/tests/test-mock.c @@ -40,7 +40,6 @@ #include "p11-kit.h" #include -#include #include #include #include @@ -224,7 +223,7 @@ test_get_mechanism_info (void) module = setup_mock_module (NULL); rv = (module->C_GetMechanismInfo) (MOCK_SLOT_ONE_ID, CKM_MOCK_CAPITALIZE, &info); - assert (rv == CKR_OK); + assert_num_eq (rv, CKR_OK); assert_num_eq (512, info.ulMinKeySize); assert_num_eq (4096, info.ulMaxKeySize); assert_num_eq (CKF_ENCRYPT | CKF_DECRYPT, info.flags); @@ -1641,6 +1640,7 @@ test_random (void) static void test_mock_add_tests (const char *prefix) { + p11_fixture (NULL, NULL); p11_test (test_get_info, "%s/test_get_info", prefix); p11_test (test_get_slot_list, "%s/test_get_slot_list", prefix); p11_test (test_get_slot_info, "%s/test_get_slot_info", prefix); -- cgit v1.1