Closed Bug 735970 Opened 13 years ago Closed 13 years ago

Add xpcshell tests for version upgrades and version downgrades inside updater code

Categories

(Toolkit :: Application Update, defect)

12 Branch
x86_64
Windows 7
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla15

People

(Reporter: bbondy, Assigned: bbondy)

References

Details

Attachments

(1 file, 1 obsolete file)

We should sign a MAR with version number 0 to test version downgrades that should not work. We should get a status code of 23 in this case. We should sign a MAR with version number * to test version upgrades that should work. We should get a status code of 0 in this case. The tests should run for the updater instead of the service since the updater is easier for people to test in a larger number of environments. This can only land after: Bug 735969 - Revert the disable version downgrade check workaround
Attached patch Patch v1. (obsolete) — Splinter Review
I was originally thinking these tests needed to be in the libmar test suite but the code for these checks are in updater so the tests need to go there.
Attachment #610805 - Flags: review?(robert.bugzilla)
Comment on attachment 610805 [details] [diff] [review] Patch v1. Looks good overall but could you: 1. give a descriptive name to the test files. 2. keep the tests alphabetical in order in the xpcshell ini file so the names with the numbers determine the order they run. It used to be they just ran in that order before the xpcshell ini files were added.
Attachment #610805 - Flags: review?(robert.bugzilla) → review+
Will do, thanks for the review.
Attached patch Patch v2.Splinter Review
Implemented review comments
Attachment #610805 - Attachment is obsolete: true
Attachment #620137 - Flags: review+
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla15
Depends on: 751652
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: