aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test-rpc_get_random.c1
-rw-r--r--tests/test-rpc_get_version.c1
-rw-r--r--tests/test-rpc_pkey.c2
-rw-r--r--tests/test-rpc_server.c1
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;
}