unit1399: add logging to time comparison

... to enable tracking down why autobuilds fail on this

Bug: #1616
This commit is contained in:
Daniel Stenberg 2017-07-01 16:40:51 +02:00
parent d24838d4da
commit 8d2b1de284
1 changed files with 5 additions and 1 deletions

View File

@ -39,7 +39,11 @@ static void unit_stop(void)
static bool usec_matches_seconds(time_t time_usec, int expected_seconds)
{
int time_sec = (int)(time_usec / usec_magnitude);
return time_sec == expected_seconds;
bool same = (time_sec == expected_seconds);
fprintf(stderr, "is %d us same as %d seconds? %s\n",
(int)time_usec, expected_seconds,
same?"Yes":"No");
return same;
}
UNITTEST_START