Confirmed users
35
edits
Line 237: | Line 237: | ||
===Testing your crashtest=== | ===Testing your crashtest=== | ||
Now is the time to test your crashtest in a real case scenario. In order to do this, add the following line to crastest.list in the $HOME/mozilla-central/dom/media/tests/crashtests directory. | Now is the time to test your crashtest in a real case scenario. In order to do this, add the following line to <tt>crastest.list</tt> in the <tt>$HOME/mozilla-central/dom/media/tests/crashtests</tt> directory. | ||
SIDE NOTE: | pref(media.peerconnection.enabled,true) load %filename% | ||
{| border="1" cellpadding="5" | |||
|'''SIDE NOTE:'''<br> | |||
If you just want to test your crashtest, you can comment out the other lines by preceding each line with a '#' (without inverted commas). | If you just want to test your crashtest, you can comment out the other lines by preceding each line with a '#' (without inverted commas). | ||
|} | |||
<br> | |||
Now go to <tt>$HOME/mozilla-central/</tt> and run the crasthest | |||
TEST_PATH=dom/media/tests/crashtests/ make -C obj/ crashtest | |||
TEST_PATH=dom/media/tests/crashtests/ make -C obj/ crashtest | |||
What we should now see, is a failed crashtest with the error message that you have seen earlier. To give you a guideline example again, I have shown the excerpt from the crashtest for this bug. | What we should now see, is a failed crashtest with the error message that you have seen earlier. To give you a guideline example again, I have shown the excerpt from the crashtest for this bug. | ||
++DOMWINDOW == 9 (0x2ad2f35e7480) [serial = 9] [outer = 0x2ad2f1110c00] | |||
++DOMWINDOW == 9 (0x2ad2f35e7480) [serial = 9] [outer = 0x2ad2f1110c00] | WARNING: NS_ENSURE_TRUE(frame) failed: file /home/nebelhom/Mozilla-Dev/mozilla-central/layout/base/nsPresContext.cpp, line 1179 | ||
WARNING: NS_ENSURE_TRUE(frame) failed: file /home/nebelhom/Mozilla-Dev/mozilla-central/layout/base/nsPresContext.cpp, line 1179 | WARNING: NS_ENSURE_TRUE(frame) failed: file /home/nebelhom/Mozilla-Dev/mozilla-central/layout/base/nsPresContext.cpp, line 1179 | ||
WARNING: NS_ENSURE_TRUE(frame) failed: file /home/nebelhom/Mozilla-Dev/mozilla-central/layout/base/nsPresContext.cpp, line 1179 | Assertion failure: i < Length() (invalid array index), at ../../dist/include/nsTArray.h:538 | ||
Assertion failure: i < Length() (invalid array index), at ../../dist/include/nsTArray.h:538 | TEST-UNEXPECTED-FAIL | file:///home/nebelhom/Mozilla-Dev/mozilla-central/dom/media/tests/crashtests/803535.html | Exited with code 11 during test run | ||
TEST-UNEXPECTED-FAIL | file:///home/nebelhom/Mozilla-Dev/mozilla-central/dom/media/tests/crashtests/803535.html | Exited with code 11 during test run | INFO | automation.py | Application ran for: 0:00:07.677545 | ||
INFO | automation.py | Application ran for: 0:00:07.677545 | INFO | automation.py | Reading PID log: /tmp/tmpMHhXprpidlog | ||
INFO | automation.py | Reading PID log: /tmp/tmpMHhXprpidlog | … | ||
REFTEST INFO | runreftest.py | Running tests: end. | |||
crashtest failed: | |||
TEST-UNEXPECTED-FAIL | file:///home/nebelhom/Mozilla-Dev/mozilla-central/dom/media/tests/crashtests/803535.html | Exited with code 11 during test run | |||
TEST-UNEXPECTED-FAIL | automationutils.processLeakLog() | missing output line for total leaks! | |||
make: *** [crashtest] Error 1 | |||
make: Leaving directory `/home/nebelhom/Mozilla-Dev/mozilla-central/obj' | |||
As you can see from the highlighted section, the error was raised again and we successfully created a crashtest! Well done!!! | As you can see from the highlighted section, the error was raised again and we successfully created a crashtest! Well done!!! |