diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2012-02-15 10:39:50 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2012-03-01 12:47:17 +0000 |
commit | 6d15f67a02078c7361844454243d7ca0c43e61ec (patch) | |
tree | 729a9871f1adf299f71fceb43a26f23dffca8933 | |
parent | 8ceaaf1a728dbbd0f2caaf547e80cd4d1d2f786e (diff) | |
download | libguestfs-6d15f67a02078c7361844454243d7ca0c43e61ec.tar.gz libguestfs-6d15f67a02078c7361844454243d7ca0c43e61ec.tar.xz libguestfs-6d15f67a02078c7361844454243d7ca0c43e61ec.zip |
test-user-cancel: Add \n to fprintf error messages.
(cherry picked from commit 6a70cb337cff736831b51bbc9c4331785d756c20)
-rw-r--r-- | tests/c-api/test-user-cancel.c | 12 |
1 files changed, 6 insertions, 6 deletions
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); } |