aboutsummaryrefslogtreecommitdiff
path: root/tests/unittests/torture_rand.c
diff options
context:
space:
mode:
Diffstat (limited to 'tests/unittests/torture_rand.c')
-rw-r--r--tests/unittests/torture_rand.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/unittests/torture_rand.c b/tests/unittests/torture_rand.c
index 46815c48..6e666dfb 100644
--- a/tests/unittests/torture_rand.c
+++ b/tests/unittests/torture_rand.c
@@ -17,9 +17,13 @@
static int setup(void **state) {
(void) state;
+ int rc;
ssh_threads_set_callbacks(ssh_threads_get_pthread());
- ssh_init();
+ rc = ssh_init();
+ if (rc != SSH_OK) {
+ return -1;
+ }
return 0;
}