From a3df10c2b050f7e34044b9190d616d2a94449f41 Mon Sep 17 00:00:00 2001 From: NIIBE Yutaka Date: Thu, 8 Dec 2022 19:36:19 +0900 Subject: [PATCH] tests: Fix for wait #f and return timeout. Signed-off-by: NIIBE Yutaka --- tests/gpgscm/ffi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/gpgscm/ffi.c b/tests/gpgscm/ffi.c index 879a05e09..b46d5cb61 100644 --- a/tests/gpgscm/ffi.c +++ b/tests/gpgscm/ffi.c @@ -943,6 +943,8 @@ do_process_wait (scheme *sc, pointer args) err = gnupg_process_wait (box->proc, hang); if (!err) err = gnupg_process_ctl (box->proc, GNUPG_PROCESS_GET_EXIT_ID, &retcode); + if (err == GPG_ERR_TIMEOUT) + err = 0; FFI_RETURN_INT (sc, retcode); }