diff options
author | Thomas Haller <thaller@redhat.com> | 2020-12-22 23:05:15 +0100 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2020-12-23 10:48:25 +0100 |
commit | 710e3d98138d96736b036ee55d5e3ebf3d7f9c6f (patch) | |
tree | a7ae2844d30fac437905f8c56a3f37394db3450d | |
parent | 3a2b4ffd0ab344736c9c3674b816e7102cc7a578 (diff) |
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.
-rw-r--r-- | src/tests/test-core-with-expect.c | 4 |
1 files 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); |