diff options
author | Stef Walter <stef@thewalter.net> | 2013-10-09 23:25:03 +0200 |
---|---|---|
committer | Stef Walter <stef@thewalter.net> | 2014-07-08 08:57:31 +0200 |
commit | 5ecfe2c8aa58a170aac2d9a9c22d7ffb3cc9442a (patch) | |
tree | cc7006890106801142a99fd7b965d3d497bf8c7b /p11-kit | |
parent | 989eab4f5886c7455242c04bf359619ac148d5ff (diff) |
mock: Minor testing tweaks to mock testing
Diffstat (limited to 'p11-kit')
-rw-r--r-- | p11-kit/tests/test-mock.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <sys/types.h> -#include <assert.h> #include <string.h> #include <stdio.h> #include <stdlib.h> @@ -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); |