mirror of https://github.com/moparisthebest/curl
unit1399: add logging to time comparison
... to enable tracking down why autobuilds fail on this Bug: #1616
This commit is contained in:
parent
d24838d4da
commit
8d2b1de284
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue