aboutsummaryrefslogtreecommitdiff
path: root/tests/test-aio-multithread.c
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2019-03-01 16:10:18 +0100
committerThomas Huth <thuth@redhat.com>2019-03-07 22:16:22 +0100
commit13ee9e30c8855a8b8d62b05992cfc65fc57a8df5 (patch)
treed842d63dacca1c6c2d2d5b7f853610eb578bd4ce /tests/test-aio-multithread.c
parent142659b89cf45ab9117d4abe771fff67c74dfac5 (diff)
tests: Do not use "\n" in g_test_message() strings
g_test_message() takes care of the newline on its own, so we should not use \n in the strings here. Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/test-aio-multithread.c')
-rw-r--r--tests/test-aio-multithread.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/test-aio-multithread.c b/tests/test-aio-multithread.c
index 6440d54ac3..d3144be7e0 100644
--- a/tests/test-aio-multithread.c
+++ b/tests/test-aio-multithread.c
@@ -178,7 +178,7 @@ static void test_multi_co_schedule(int seconds)
}
join_aio_contexts();
- g_test_message("scheduled %d, queued %d, retry %d, total %d\n",
+ g_test_message("scheduled %d, queued %d, retry %d, total %d",
count_other, count_here, count_retry,
count_here + count_other + count_retry);
}
@@ -242,7 +242,7 @@ static void test_multi_co_mutex(int threads, int seconds)
}
join_aio_contexts();
- g_test_message("%d iterations/second\n", counter / seconds);
+ g_test_message("%d iterations/second", counter / seconds);
g_assert_cmpint(counter, ==, atomic_counter);
}
@@ -361,7 +361,7 @@ static void test_multi_fair_mutex(int threads, int seconds)
}
join_aio_contexts();
- g_test_message("%d iterations/second\n", counter / seconds);
+ g_test_message("%d iterations/second", counter / seconds);
g_assert_cmpint(counter, ==, atomic_counter);
}
@@ -417,7 +417,7 @@ static void test_multi_mutex(int threads, int seconds)
}
join_aio_contexts();
- g_test_message("%d iterations/second\n", counter / seconds);
+ g_test_message("%d iterations/second", counter / seconds);
g_assert_cmpint(counter, ==, atomic_counter);
}