mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-05 21:00:33 +09:00
fix: replace pthread_exit in gssapi tests
Signed-off-by: Gauravsingh Sisodia <xaerru@gmail.com> Reviewed-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
committed by
Jakub Jelen
parent
d0e5cf78d0
commit
6d81ecddbe
@@ -272,11 +272,5 @@ torture_run_tests(void)
|
||||
rc = cmocka_run_group_tests(tests, sshd_setup, sshd_teardown);
|
||||
ssh_finalize();
|
||||
|
||||
/* pthread_exit() won't return anything so error should be returned prior */
|
||||
if (rc != 0) {
|
||||
return rc;
|
||||
}
|
||||
|
||||
/* Required for freeing memory allocated by GSSAPI */
|
||||
pthread_exit(NULL);
|
||||
return rc;
|
||||
}
|
||||
|
||||
@@ -318,11 +318,5 @@ int torture_run_tests(void)
|
||||
rc = cmocka_run_group_tests(tests, sshd_setup, sshd_teardown);
|
||||
ssh_finalize();
|
||||
|
||||
/* pthread_exit() won't return anything so error should be returned prior */
|
||||
if (rc != 0) {
|
||||
return rc;
|
||||
}
|
||||
|
||||
/* Required for freeing memory allocated by GSSAPI */
|
||||
pthread_exit(NULL);
|
||||
return rc;
|
||||
}
|
||||
|
||||
@@ -137,11 +137,5 @@ int torture_run_tests(void)
|
||||
rc = cmocka_run_group_tests(tests, sshd_setup, sshd_teardown);
|
||||
ssh_finalize();
|
||||
|
||||
/* pthread_exit() won't return anything so error should be returned prior */
|
||||
if (rc != 0) {
|
||||
return rc;
|
||||
}
|
||||
|
||||
/* Required for freeing memory allocated by GSSAPI */
|
||||
pthread_exit(NULL);
|
||||
return rc;
|
||||
}
|
||||
|
||||
@@ -452,11 +452,5 @@ torture_run_tests(void)
|
||||
teardown_default_server);
|
||||
ssh_finalize();
|
||||
|
||||
/* pthread_exit() won't return anything so error should be returned prior */
|
||||
if (rc != 0) {
|
||||
return rc;
|
||||
}
|
||||
|
||||
/* Required for freeing memory allocated by GSSAPI */
|
||||
pthread_exit(NULL);
|
||||
return rc;
|
||||
}
|
||||
|
||||
@@ -476,11 +476,5 @@ torture_run_tests(void)
|
||||
teardown_default_server);
|
||||
ssh_finalize();
|
||||
|
||||
/* pthread_exit() won't return anything so error should be returned prior */
|
||||
if (rc != 0) {
|
||||
return rc;
|
||||
}
|
||||
|
||||
/* Required for freeing memory allocated by GSSAPI */
|
||||
pthread_exit(NULL);
|
||||
return rc;
|
||||
}
|
||||
|
||||
@@ -372,11 +372,5 @@ torture_run_tests(void)
|
||||
teardown_default_server);
|
||||
ssh_finalize();
|
||||
|
||||
/* pthread_exit() won't return anything so error should be returned prior */
|
||||
if (rc != 0) {
|
||||
return rc;
|
||||
}
|
||||
|
||||
/* Required for freeing memory allocated by GSSAPI */
|
||||
pthread_exit(NULL);
|
||||
return rc;
|
||||
}
|
||||
|
||||
@@ -579,11 +579,5 @@ int torture_run_tests(void)
|
||||
teardown_default_server);
|
||||
ssh_finalize();
|
||||
|
||||
/* pthread_exit() won't return anything so error should be returned prior */
|
||||
if (rc != 0) {
|
||||
return rc;
|
||||
}
|
||||
|
||||
/* Required for freeing memory allocated by GSSAPI */
|
||||
pthread_exit(NULL);
|
||||
return rc;
|
||||
}
|
||||
|
||||
@@ -288,11 +288,5 @@ int torture_run_tests(void)
|
||||
teardown_default_server);
|
||||
ssh_finalize();
|
||||
|
||||
/* pthread_exit() won't return anything so error should be returned prior */
|
||||
if (rc != 0) {
|
||||
return rc;
|
||||
}
|
||||
|
||||
/* Required for freeing memory allocated by GSSAPI */
|
||||
pthread_exit(NULL);
|
||||
return rc;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user