dcavalca / rpms / qemu

Forked from rpms/qemu a year ago
Clone

Blame 0107-rtc-test-Fix-test-failures-with-recent-glib.patch

c0e541
From 2e8c33aab214c118fa8a579938f1dbd54397a80d Mon Sep 17 00:00:00 2001
c0e541
From: Cole Robinson <crobinso@redhat.com>
c0e541
Date: Wed, 27 Feb 2013 09:43:54 -0500
c0e541
Subject: [PATCH] rtc-test: Fix test failures with recent glib
c0e541
c0e541
As of glib 2.35.4, glib changed its logic for ordering test cases:
c0e541
c0e541
https://bugzilla.gnome.org/show_bug.cgi?id=694487
c0e541
c0e541
This was causing failures in rtc-test. Group the reordered test
c0e541
cases into their own suite, which maintains the original ordering.
c0e541
---
c0e541
 tests/rtc-test.c | 6 +++---
c0e541
 1 file changed, 3 insertions(+), 3 deletions(-)
c0e541
c0e541
diff --git a/tests/rtc-test.c b/tests/rtc-test.c
c0e541
index 203c0fc..097cfb4 100644
c0e541
--- a/tests/rtc-test.c
c0e541
+++ b/tests/rtc-test.c
c0e541
@@ -384,11 +384,11 @@ int main(int argc, char **argv)
c0e541
 
c0e541
     qtest_add_func("/rtc/bcd/check-time", bcd_check_time);
c0e541
     qtest_add_func("/rtc/dec/check-time", dec_check_time);
c0e541
-    qtest_add_func("/rtc/alarm-time", alarm_time);
c0e541
+    qtest_add_func("/rtc/alarm/alarm-time", alarm_time);
c0e541
     qtest_add_func("/rtc/set-year/20xx", set_year_20xx);
c0e541
     qtest_add_func("/rtc/set-year/1980", set_year_1980);
c0e541
-    qtest_add_func("/rtc/register_b_set_flag", register_b_set_flag);
c0e541
-    qtest_add_func("/rtc/fuzz-registers", fuzz_registers);
c0e541
+    qtest_add_func("/rtc/misc/register_b_set_flag", register_b_set_flag);
c0e541
+    qtest_add_func("/rtc/misc/fuzz-registers", fuzz_registers);
c0e541
     ret = g_test_run();
c0e541
 
c0e541
     if (s) {