Browse Source

Merge pull request #3498

eaafa23 Add test for GetTime() (Wladimir J. van der Laan)
0.10
Wladimir J. van der Laan 11 years ago
parent
commit
16ae1c0da1
No known key found for this signature in database
GPG Key ID: 74810B012346C9A6
  1. 8
      src/test/util_tests.cpp

8
src/test/util_tests.cpp

@ -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…
Cancel
Save