posix/tst-wordexp-nocmd: Fix diagnostics output in test

This commit is contained in:
Florian Weimer 2019-10-08 18:55:48 +02:00
parent 3203690170
commit 25465ee037
2 changed files with 6 additions and 2 deletions

View File

@ -1,3 +1,7 @@
2019-10-08 Florian Weimer <fweimer@redhat.com>
* posix/tst-wordexp-nocmd.c (do_test): Fix diagnostics output.
2019-10-08 Florian Weimer <fweimer@redhat.com>
* posix/Makefile (tests): Add tst-wordexp-nocmd.

View File

@ -161,12 +161,12 @@ do_test (void)
#ifdef CLONE_NEWPID
if (unshare (CLONE_NEWPID) != 0)
printf ("warning: unshare (CLONE_NEW_PID) failed: %m\n"
printf ("warning: unshare (CLONE_NEWPID) failed: %m\n"
"warning: This leads to reduced test coverage.\n");
else
pid_tests_supported = true;
#else
printf ("warning: CLONE_NEW_PID not available.\n"
printf ("warning: CLONE_NEWPID not available.\n"
"warning: This leads to reduced test coverage.\n");
#endif