Files
libssh/tests
Jon Simons ed8b7ea7a7 tests/pkd: relax pthread_kill assert in pkd_stop
Relax the `pthread_kill` result assertion in `pkd_stop` to tolerate
`ESRCH`, and guard against only `EINVAL` and `ENOTSUP`.

On macOS what can happen is that the `pthread_kill` returns `ESRCH` due
to the accept thread being already terminated.  For that case, the
teardown path should proceed to `pthread_join`.

Testing notes:
 - On my macOS setup I consistently encountered `ESRCH` in this
   codepath, causing pkd tests to fail unnecessarily.  With the
   change, I observe the tests passing.

Signed-off-by: Jon Simons <jon@jonsimons.org>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
(cherry picked from commit aa206cbfe5)
2023-05-15 14:44:53 +02:00
..
2019-12-20 14:39:56 +01:00
2010-05-17 20:08:11 +02:00
2009-11-05 18:18:35 +01:00
2022-11-18 16:19:21 +01:00
2022-11-18 16:19:21 +01:00