test-time-util.c revision 02c335c23bf5fa225a467c19f2c063fb0dc7b8c3
/* Copyright (c) 2009-2016 Dovecot authors, see the included COPYING file */
#include "test-lib.h"
#include "time-util.h"
static void test_timeval_cmp(void)
{
{ 0, 0 }, { 0, 0 },
{ 0, 0 }, { 0, 1 },
{ 0, 0 }, { 1, 0 },
{ 0, 999999 }, { 1, 0 },
{ 1, 0 }, { 1, 1 },
};
static int output[] = {
0,
0,
-1,
-1,
-1,
-1,
-1
};
unsigned int i;
test_begin("timeval_cmp()");
}
test_end();
}
static void test_timeval_diff(void)
{
{ 1, 0 }, { 0, 999999 },
{ 1, 0 }, { 0, 999001 },
{ 1, 1 }, { 0, 999001 },
{ 2, 1 }, { 1, 0 },
};
static int output[] = {
1,
999,
1000,
1000001,
999999
};
unsigned int i;
long long udiff;
int mdiff;
test_begin("timeval_diff_*()");
}
test_end();
}
void test_time_util(void)
{
}