mirror of
https://github.com/Motorhead1991/qemu.git
synced 2026-01-05 22:17:40 -07:00
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>
This commit is contained in:
parent
142659b89c
commit
13ee9e30c8
8 changed files with 24 additions and 26 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue