Closed Bug 778725 Opened 12 years ago Closed 12 years ago

"Program error managing snapshot" when running reftest in b2g

Categories

(Testing :: Reftest, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
mozilla17

People

(Reporter: ahal, Assigned: ahal)

References

Details

Attachments

(1 file)

Looking through the logs while running reftests in b2g (see https://wiki.mozilla.org/B2G/Hacking#Reftests) there are several "program error managing snapshot" failures.

There is no test name associated with these errors, though it does seem to prevent the test from running. There's a very good chance this is caused by something I did to the harness to get it working in B2G in the first place.
In reftest.js -> RecordResult():
    if (gURLs[0]["prefSettings" + gState].length == 0 &&
        gURICanvases[gCurrentURL]) {
        gCurrentCanvas = gURICanvases[gCurrentURL];
    }
    if (gCurrentCanvas == null) {
        gDumpLog("REFTEST TEST-UNEXPECTED-FAIL | | program error managing snapshots\n");
        ++gTestResults.Exception;
    }
Ugh, so I think this was caused by me doing something hacky to get the reftests working initially and then forgetting to go back and fix it properly afterwards. Doing some more testing, but should have a patch soon.
Completely forgot that I had done this hack. This will get rid of the of the program error managing snapshot messages, though I don't think it will fix any of the tests that were failing previously (though one can hope!)
Attachment #652238 - Flags: review?(jgriffin)
Comment on attachment 652238 [details] [diff] [review]
Patch 1.0 - Fix prggram error managing snapshots error

Review of attachment 652238 [details] [diff] [review]:
-----------------------------------------------------------------

lgtm
Attachment #652238 - Flags: review?(jgriffin) → review+
https://hg.mozilla.org/mozilla-central/rev/f6dd071e8ff9
Status: ASSIGNED → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: