diff options
author | Stef Walter <stef@thewalter.net> | 2013-10-09 23:25:03 +0200 |
---|---|---|
committer | Stef Walter <stef@thewalter.net> | 2014-06-23 11:33:48 +0200 |
commit | fcb22f3142cff178d7708a57b45d3432b56df08d (patch) | |
tree | 4624076faaac597074f7605a56e4d23feb10e604 | |
parent | 47dfe3d944bb58682ce1eec90fc58ba93eab5711 (diff) | |
download | p11-kit-fcb22f3142cff178d7708a57b45d3432b56df08d.tar.gz |
mock: Minor testing tweaks to mock testing
-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); |