summaryrefslogtreecommitdiff
path: root/test/test-skeleton.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test-skeleton.c')
-rw-r--r--test/test-skeleton.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test-skeleton.c b/test/test-skeleton.c
index 0547d9a2a..1b6ae1263 100644
--- a/test/test-skeleton.c
+++ b/test/test-skeleton.c
@@ -117,7 +117,7 @@ create_temp_file (const char *base, char **filename)
fd = mkstemp (fname);
if (fd == -1)
{
- printf ("cannot open temporary file '%s': %m\n", fname);
+ printf ("cannot open temporary file '%s': %s\n", fname, strerror(errno));
free (fname);
return -1;
}
@@ -335,7 +335,7 @@ main (int argc, char *argv[])
termpid = TEMP_FAILURE_RETRY (waitpid (pid, &status, 0));
if (termpid == -1)
{
- printf ("Waiting for test program failed: %m\n");
+ printf ("Waiting for test program failed: %s\n", strerror(errno));
exit (1);
}
if (termpid != pid)