Skip to content

Commit

Permalink
Reduce the tightness of AddMSecsWorks() bounds.
Browse files Browse the repository at this point in the history
The time elapsed is in the range 30-34 on a Gentoo system.

As long as the elapsed time is between 25 and 51 ms the addMSecs call did work,
it may just take longer to get our timeslice back on some systems than others.
  • Loading branch information
daniel-kristjansson committed May 31, 2013
1 parent 8ae2bb9 commit c94e70d
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -98,7 +98,7 @@ class TestMythTimer: public QObject
t.start();
t.addMSecs(-25);
usleep(52 * 1000);
QVERIFY(t.elapsed() > 25 && t.elapsed() < 30);
QVERIFY(t.elapsed() > 25 && t.elapsed() < 50);
}

void AddMSecsIsResetOnStart(void)
Expand Down

0 comments on commit c94e70d

Please sign in to comment.