Commit 8d2b1de2 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

unit1399: add logging to time comparison

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

Bug: #1616
parent d24838d4
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -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