diff options
Diffstat (limited to 'tests/unittests/torture_rand.c')
-rw-r--r-- | tests/unittests/torture_rand.c | 6 |
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; } |