mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-02-09 10:43:19 -05:00
Add test for GetTime()
Test for mingw/wine issue #3494, where the upper word of time(NULL) return value gets clobbered.
This commit is contained in:
parent
13e99e463d
commit
eaafa23cbd
1 changed files with 8 additions and 0 deletions
|
@ -330,4 +330,12 @@ BOOST_AUTO_TEST_CASE(strprintf_numbers)
|
||||||
#undef B
|
#undef B
|
||||||
#undef E
|
#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()
|
BOOST_AUTO_TEST_SUITE_END()
|
||||||
|
|
Loading…
Add table
Reference in a new issue