mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-10 10:26:47 +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);
|
rc = cmocka_run_group_tests(tests, sshd_setup, sshd_teardown);
|
||||||
ssh_finalize();
|
ssh_finalize();
|
||||||
|
|
||||||
/* pthread_exit() won't return anything so error should be returned prior */
|
|
||||||
if (rc != 0) {
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
|
||||||
|
|
||||||
/* Required for freeing memory allocated by GSSAPI */
|
|
||||||
pthread_exit(NULL);
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -318,11 +318,5 @@ int torture_run_tests(void)
|
|||||||
rc = cmocka_run_group_tests(tests, sshd_setup, sshd_teardown);
|
rc = cmocka_run_group_tests(tests, sshd_setup, sshd_teardown);
|
||||||
ssh_finalize();
|
ssh_finalize();
|
||||||
|
|
||||||
/* pthread_exit() won't return anything so error should be returned prior */
|
|
||||||
if (rc != 0) {
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
|
||||||
|
|
||||||
/* Required for freeing memory allocated by GSSAPI */
|
|
||||||
pthread_exit(NULL);
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -137,11 +137,5 @@ int torture_run_tests(void)
|
|||||||
rc = cmocka_run_group_tests(tests, sshd_setup, sshd_teardown);
|
rc = cmocka_run_group_tests(tests, sshd_setup, sshd_teardown);
|
||||||
ssh_finalize();
|
ssh_finalize();
|
||||||
|
|
||||||
/* pthread_exit() won't return anything so error should be returned prior */
|
|
||||||
if (rc != 0) {
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
|
||||||
|
|
||||||
/* Required for freeing memory allocated by GSSAPI */
|
|
||||||
pthread_exit(NULL);
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -452,11 +452,5 @@ torture_run_tests(void)
|
|||||||
teardown_default_server);
|
teardown_default_server);
|
||||||
ssh_finalize();
|
ssh_finalize();
|
||||||
|
|
||||||
/* pthread_exit() won't return anything so error should be returned prior */
|
|
||||||
if (rc != 0) {
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
|
||||||
|
|
||||||
/* Required for freeing memory allocated by GSSAPI */
|
|
||||||
pthread_exit(NULL);
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -476,11 +476,5 @@ torture_run_tests(void)
|
|||||||
teardown_default_server);
|
teardown_default_server);
|
||||||
ssh_finalize();
|
ssh_finalize();
|
||||||
|
|
||||||
/* pthread_exit() won't return anything so error should be returned prior */
|
|
||||||
if (rc != 0) {
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
|
||||||
|
|
||||||
/* Required for freeing memory allocated by GSSAPI */
|
|
||||||
pthread_exit(NULL);
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -372,11 +372,5 @@ torture_run_tests(void)
|
|||||||
teardown_default_server);
|
teardown_default_server);
|
||||||
ssh_finalize();
|
ssh_finalize();
|
||||||
|
|
||||||
/* pthread_exit() won't return anything so error should be returned prior */
|
|
||||||
if (rc != 0) {
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
|
||||||
|
|
||||||
/* Required for freeing memory allocated by GSSAPI */
|
|
||||||
pthread_exit(NULL);
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -579,11 +579,5 @@ int torture_run_tests(void)
|
|||||||
teardown_default_server);
|
teardown_default_server);
|
||||||
ssh_finalize();
|
ssh_finalize();
|
||||||
|
|
||||||
/* pthread_exit() won't return anything so error should be returned prior */
|
|
||||||
if (rc != 0) {
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
|
||||||
|
|
||||||
/* Required for freeing memory allocated by GSSAPI */
|
|
||||||
pthread_exit(NULL);
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -288,11 +288,5 @@ int torture_run_tests(void)
|
|||||||
teardown_default_server);
|
teardown_default_server);
|
||||||
ssh_finalize();
|
ssh_finalize();
|
||||||
|
|
||||||
/* pthread_exit() won't return anything so error should be returned prior */
|
|
||||||
if (rc != 0) {
|
|
||||||
return rc;
|
return rc;
|
||||||
}
|
|
||||||
|
|
||||||
/* Required for freeing memory allocated by GSSAPI */
|
|
||||||
pthread_exit(NULL);
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user