diff options
author | Thomas Huth <thuth@redhat.com> | 2019-03-01 16:10:18 +0100 |
---|---|---|
committer | Thomas Huth <thuth@redhat.com> | 2019-03-07 22:16:22 +0100 |
commit | 13ee9e30c8855a8b8d62b05992cfc65fc57a8df5 (patch) | |
tree | d842d63dacca1c6c2d2d5b7f853610eb578bd4ce /tests/rtc-test.c | |
parent | 142659b89cf45ab9117d4abe771fff67c74dfac5 (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/rtc-test.c')
-rw-r--r-- | tests/rtc-test.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/rtc-test.c b/tests/rtc-test.c index d7a96cbd79..509be707e3 100644 --- a/tests/rtc-test.c +++ b/tests/rtc-test.c @@ -165,9 +165,9 @@ static void check_time(int wiggle) t = (long)mktime(datep); s = (long)mktime(&start); if (t < s) { - g_test_message("RTC is %ld second(s) behind wall-clock\n", (s - t)); + g_test_message("RTC is %ld second(s) behind wall-clock", (s - t)); } else { - g_test_message("RTC is %ld second(s) ahead of wall-clock\n", (t - s)); + g_test_message("RTC is %ld second(s) ahead of wall-clock", (t - s)); } g_assert_cmpint(ABS(t - s), <=, wiggle); |