From: Daniel Stenberg Date: Sat, 1 Jul 2017 14:40:51 +0000 (+0200) Subject: unit1399: add logging to time comparison X-Git-Tag: curl-7_55_0~120 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8d2b1de284dd1e84e9c68a1a2a75aefaf7bf7826;p=thirdparty%2Fcurl.git unit1399: add logging to time comparison ... to enable tracking down why autobuilds fail on this Bug: #1616 --- diff --git a/tests/unit/unit1399.c b/tests/unit/unit1399.c index 1befc8aafe..b733c8fd80 100644 --- a/tests/unit/unit1399.c +++ b/tests/unit/unit1399.c @@ -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