projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7cd5da7
)
rtc-test: skip year-2038 overflow check in case time_t is 32bit only
author
Gerd Hoffmann
<kraxel@redhat.com>
Fri, 4 Jan 2013 09:37:50 +0000
(10:37 +0100)
committer
Gerd 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
patch
|
blob
|
history
diff --git
a/tests/rtc-test.c
b/tests/rtc-test.c
index 02edbf5727c208b7b671f3e3c601262f2fd1b4ab..e7123cafbc8f3910e4acae9d68d701ba60f24566 100644
(file)
--- a/
tests/rtc-test.c
+++ b/
tests/rtc-test.c
@@
-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);