diff options
author | Paul Selkirk <paul@psgd.org> | 2016-06-01 16:43:20 -0400 |
---|---|---|
committer | Paul Selkirk <paul@psgd.org> | 2016-06-01 16:43:20 -0400 |
commit | b83f77f5517d65c11052ab11e48b56dcb9f712ef (patch) | |
tree | 3b8e7882572b464019648c9ff5870b8fb2ed72c4 /tests | |
parent | 9ad64e1fd9f77087320433b8b9d01a31304f0a1e (diff) |
Add hal_rpc_client_close() where needed.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-rpc_get_random.c | 1 | ||||
-rw-r--r-- | tests/test-rpc_get_version.c | 1 | ||||
-rw-r--r-- | tests/test-rpc_pkey.c | 2 | ||||
-rw-r--r-- | tests/test-rpc_server.c | 1 |
4 files changed, 5 insertions, 0 deletions
diff --git a/tests/test-rpc_get_random.c b/tests/test-rpc_get_random.c index e495514..ad0c6e8 100644 --- a/tests/test-rpc_get_random.c +++ b/tests/test-rpc_get_random.c @@ -65,5 +65,6 @@ int main(int argc, char *argv[]) hexdump(rnd, len); + check(hal_rpc_client_close()); return 0; } diff --git a/tests/test-rpc_get_version.c b/tests/test-rpc_get_version.c index d9041b8..b46dc64 100644 --- a/tests/test-rpc_get_version.c +++ b/tests/test-rpc_get_version.c @@ -47,5 +47,6 @@ int main(int argc, char *argv[]) check(hal_rpc_get_version(&version)); printf("%08x\n", version); + check(hal_rpc_client_close()); return 0; } diff --git a/tests/test-rpc_pkey.c b/tests/test-rpc_pkey.c index f5374b3..f6b6f15 100644 --- a/tests/test-rpc_pkey.c +++ b/tests/test-rpc_pkey.c @@ -334,6 +334,8 @@ int main (int argc, char *argv[]) for (int i = 0; i < (sizeof(ecdsa_tc)/sizeof(*ecdsa_tc)); i++) ok &= test_ecdsa_generate(&ecdsa_tc[i]); + ok &= hal_rpc_client_close(); + return !ok; } diff --git a/tests/test-rpc_server.c b/tests/test-rpc_server.c index eb11f6d..b0b2fd0 100644 --- a/tests/test-rpc_server.c +++ b/tests/test-rpc_server.c @@ -6,5 +6,6 @@ int main (int argc, char *argv[]) return 1; hal_rpc_server_main(); + hal_rpc_server_close(); return 0; } |