diff options
author | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-01-10 08:41:04 +0100 |
---|---|---|
committer | Wladimir J. van der Laan <laanwj@gmail.com> | 2014-01-10 08:41:10 +0100 |
commit | 16ae1c0da179f3e901bacea6f0be84ce0921bf69 (patch) | |
tree | 1c8280b90894814d742ca8431c17b20d408cc459 | |
parent | 13e99e463d4aa0bd2b2892010ca8c7007c40c242 (diff) | |
parent | eaafa23cbd83b7bda4b28779138c62446bbdea2a (diff) |
Merge pull request #3498
eaafa23 Add test for GetTime() (Wladimir J. van der Laan)
-rw-r--r-- | src/test/util_tests.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/test/util_tests.cpp b/src/test/util_tests.cpp index b57945d061..691f02a9d7 100644 --- a/src/test/util_tests.cpp +++ b/src/test/util_tests.cpp @@ -330,4 +330,12 @@ BOOST_AUTO_TEST_CASE(strprintf_numbers) #undef B #undef E +/* Check for mingw/wine issue #3494 + * Remove this test before time.ctime(0xffffffff) == 'Sun Feb 7 07:28:15 2106' + */ +BOOST_AUTO_TEST_CASE(gettime) +{ + BOOST_CHECK((GetTime() & ~0xFFFFFFFFLL) == 0); +} + BOOST_AUTO_TEST_SUITE_END() |