From 6a70cb337cff736831b51bbc9c4331785d756c20 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Wed, 15 Feb 2012 10:39:50 +0000 Subject: test-user-cancel: Add \n to fprintf error messages. --- tests/c-api/test-user-cancel.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'tests/c-api/test-user-cancel.c') diff --git a/tests/c-api/test-user-cancel.c b/tests/c-api/test-user-cancel.c index 0cc049a0..4908f953 100644 --- a/tests/c-api/test-user-cancel.c +++ b/tests/c-api/test-user-cancel.c @@ -143,7 +143,7 @@ main (int argc, char *argv[]) /* Create the test thread. */ r = pthread_create (&test_thread, NULL, start_test_thread, &data); if (r != 0) { - fprintf (stderr, "pthread_create: %s", strerror (r)); + fprintf (stderr, "pthread_create: %s\n", strerror (r)); exit (EXIT_FAILURE); } @@ -154,12 +154,12 @@ main (int argc, char *argv[]) /* Kill the test thread and clean up. */ r = pthread_cancel (test_thread); if (r != 0) { - fprintf (stderr, "pthread_cancel: %s", strerror (r)); + fprintf (stderr, "pthread_cancel: %s\n", strerror (r)); exit (EXIT_FAILURE); } r = pthread_join (test_thread, NULL); if (r != 0) { - fprintf (stderr, "pthread_join: %s", strerror (r)); + fprintf (stderr, "pthread_join: %s\n", strerror (r)); exit (EXIT_FAILURE); } @@ -204,7 +204,7 @@ main (int argc, char *argv[]) /* Create the test thread. */ r = pthread_create (&test_thread, NULL, start_test_thread, &data); if (r != 0) { - fprintf (stderr, "pthread_create: %s", strerror (r)); + fprintf (stderr, "pthread_create: %s\n", strerror (r)); exit (EXIT_FAILURE); } @@ -215,12 +215,12 @@ main (int argc, char *argv[]) /* Kill the test thread and clean up. */ r = pthread_cancel (test_thread); if (r != 0) { - fprintf (stderr, "pthread_cancel: %s", strerror (r)); + fprintf (stderr, "pthread_cancel: %s\n", strerror (r)); exit (EXIT_FAILURE); } r = pthread_join (test_thread, NULL); if (r != 0) { - fprintf (stderr, "pthread_join: %s", strerror (r)); + fprintf (stderr, "pthread_join: %s\n", strerror (r)); exit (EXIT_FAILURE); } -- cgit