Something in B2G emulator is dividing a TimeDuration by a zero TimeDuration

RESOLVED WONTFIX

Status

Firefox OS
General
RESOLVED WONTFIX
4 years ago
10 months ago

People

(Reporter: birtles, Unassigned)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

4 years ago
In bug 1039924 I've been tightening up our handling of TimeDurations where the time might be set to 'Forever' (representing an infinite time).

As part of that work I went to add an assertion to the following method:

  double
  TimeDuration::operator/(const TimeDuration& aOther) const

that simply checks that the denominator is not zero:

  MOZ_ASSERT(aOther.mValue != 0, "Division by zero");

However, this assertion fails in every single mochitest chunk on B2G ICS Emulator Debug

  https://tbpl.mozilla.org/?tree=Try&rev=e5305b1927d1

I've spent about two days trying to get mochitests to run on an emulator build but without success (I managed it about 6 months ago, again, after about 2 days of fiddling and asking people, but things have changed since then and it no longer works). So I have no idea what is tickling this assertion. I'm just going to turn off that assertion for B2G until someone can help me get mochitests running on an emulator build.
Status: NEW → RESOLVED
Last Resolved: 10 months ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.