If an xpcshell test called run_next_test() from inside an add_task(), bad things would happen. This patch detects that behavior and aborts the test immediately with an actionable error message.
Common testing tools for mozilla codebase projects, test suite definitions for automated test runs, tests that don't fit anywhere else, and other fun stuff