DevTools/Intermittents: Difference between revisions

Jump to navigation Jump to search
(Can only supply a directory)
Line 34: Line 34:
Because intermittents are often caused by race conditions, it's sometimes useful to enable Chaos Mode.  This changes timings and event orderings a bit. The simplest way to do this is to enable it in a specific test, by
Because intermittents are often caused by race conditions, it's sometimes useful to enable Chaos Mode.  This changes timings and event orderings a bit. The simplest way to do this is to enable it in a specific test, by
calling <code>SimpleTest.testInChaosMode</code>.  You can also set the <code>MOZ_CHAOSMODE</code> environment variable, or even hack <code>mfbt/ChaosMode.cpp</code> directly.
calling <code>SimpleTest.testInChaosMode</code>.  You can also set the <code>MOZ_CHAOSMODE</code> environment variable, or even hack <code>mfbt/ChaosMode.cpp</code> directly.
Some tests leak intermittently. Use `ac_add_options --enable-logrefcnt` in your mozconfig to potentially find them.


The amazing rr has [http://robert.ocallahan.org/2016/02/introducing-rr-chaos-mode.html its own chaos mode].
The amazing rr has [http://robert.ocallahan.org/2016/02/introducing-rr-chaos-mode.html its own chaos mode].
Confirmed users
29

edits

Navigation menu