]> git.proxmox.com Git - mirror_qemu.git/commitdiff
rtc-test: skip year-2038 overflow check in case time_t is 32bit only
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 4 Jan 2013 09:37:50 +0000 (10:37 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Thu, 10 Jan 2013 14:23:39 +0000 (15:23 +0100)
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
tests/rtc-test.c

index 02edbf5727c208b7b671f3e3c601262f2fd1b4ab..e7123cafbc8f3910e4acae9d68d701ba60f24566 100644 (file)
@@ -201,6 +201,10 @@ static void set_year_20xx(void)
     g_assert_cmpint(cmos_read(RTC_YEAR), ==, 0x11);
     g_assert_cmpint(cmos_read(RTC_CENTURY), ==, 0x20);
 
+    if (sizeof(time_t) == 4) {
+        return;
+    }
+
     /* Set a date in 2080 to ensure there is no year-2038 overflow.  */
     cmos_write(RTC_REG_A, 0x76);
     cmos_write(RTC_YEAR, 0x80);