aboutsummaryrefslogtreecommitdiff
path: root/tests/unit
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2017-07-01 16:40:51 +0200
committerDaniel Stenberg <daniel@haxx.se>2017-07-01 16:41:29 +0200
commit8d2b1de284dd1e84e9c68a1a2a75aefaf7bf7826 (patch)
treee14b2e9ec0c82bfd840511858d66af58e4bd2c4d /tests/unit
parentd24838d4da9faadee5fa954bbcee7a75bb43d12b (diff)
unit1399: add logging to time comparison
... to enable tracking down why autobuilds fail on this Bug: #1616
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/unit1399.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/unit/unit1399.c b/tests/unit/unit1399.c
index 1befc8aaf..b733c8fd8 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