add unit test for timer functions

This commit is contained in:
Arvid Norberg
2013-11-01 16:05:48 +00:00
parent 375ce91248
commit 03a6829070
3 changed files with 101 additions and 7 deletions

View File

@@ -213,13 +213,6 @@ int test_main()
snprintf(msg, sizeof(msg), "too %s format string", "long");
TEST_CHECK(strcmp(msg, "too long ") == 0);
// make sure the time classes have correct semantics
TEST_EQUAL(total_milliseconds(milliseconds(100)), 100);
TEST_EQUAL(total_milliseconds(milliseconds(1)), 1);
TEST_EQUAL(total_milliseconds(seconds(1)), 1000);
if (supports_ipv6())
{
// make sure the assumption we use in policy's peer list hold