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-02-15 10:39:50 +0000 |
commit | 6a70cb337cff736831b51bbc9c4331785d756c20 (patch) | |
tree | 18974d153593cd086eb75417eaee2b5ea8f7c169 /tests | |
parent | 84a4160fd30c46575b93f87f6ffc7cc556b0af93 (diff) | |
download | libguestfs-6a70cb337cff736831b51bbc9c4331785d756c20.tar.gz libguestfs-6a70cb337cff736831b51bbc9c4331785d756c20.tar.xz libguestfs-6a70cb337cff736831b51bbc9c4331785d756c20.zip |
test-user-cancel: Add \n to fprintf error messages.
Diffstat (limited to 'tests')
-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); } |