From 710e3d98138d96736b036ee55d5e3ebf3d7f9c6f Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Tue, 22 Dec 2020 23:05:15 +0100 Subject: core/tests: relax checks in do_test_nm_utils_kill_child() for libmusl We were asserting against error messages from strerror(), and on libmusl these are different. Relax the checks. We still assert against parts of the text, where possible. So a similar problem could happen in the future or with another libc library. --- src/tests/test-core-with-expect.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tests/test-core-with-expect.c b/src/tests/test-core-with-expect.c index 547c659480..35d6bf95bf 100644 --- a/src/tests/test-core-with-expect.c +++ b/src/tests/test-core-with-expect.c @@ -334,7 +334,7 @@ do_test_nm_utils_kill_child(void) * is a race here. */ NMTST_EXPECT_NM_ERROR( "kill child process 'test-s-3-2' (*): failed due to unexpected return value -1 by waitpid " - "(No child processes, 10) after sending no signal (0)"); + "(No child process*, 10) after sending no signal (0)"); test_nm_utils_kill_child_sync_do("test-s-3-2", pid3s, 0, 0, FALSE, NULL); NMTST_EXPECT_NM_DEBUG("kill child process 'test-s-4' (*): waiting up to 1 milliseconds for " @@ -397,7 +397,7 @@ do_test_nm_utils_kill_child(void) * is a race here. */ NMTST_EXPECT_NM_ERROR( "kill child process 'test-a-3-2' (*): failed due to unexpected return value -1 by waitpid " - "(No child processes, 10) after sending no signal (0)"); + "(No child process*, 10) after sending no signal (0)"); NMTST_EXPECT_NM_DEBUG( "kill child process 'test-a-3-2' (*): invoke callback: killing child failed"); test_nm_utils_kill_child_async_do("test-a-3-2", pid3a, 0, 0, FALSE, NULL); -- cgit v1.2.3