Closed Bug 274136 Opened 21 years ago Closed 7 years ago

add method to set xpcshell's exit code

Categories

(Core :: XPConnect, defect)

defect
Not set
normal

Tracking

()

RESOLVED INACTIVE

People

(Reporter: shaver, Unassigned)

Details

Attachments

(1 file)

This will make it easier to write test scripts that run in an automated way. Patch in a trice.
Comment on attachment 168458 [details] [diff] [review] setExitCode(n) sets gExitCode to n (if omitted, 0) r=dmose
Attachment #168458 - Flags: review+
I thought Quit took a parameter that was to be the return value of XPCShell?
this breaks the windows build, see creature (and my depend build ;-))
I backed out, I tried to contact shaver via IRC, bugzilla, and email. This patch burns the firefox tb for 2h with no sign of a fix.
Pretending for a moment that the patch didn't break the tree, yes, I suppose Quit does. We were looking for a way to set the exit code as well as return it from an inner test function, so that tests run interactively wouldn't exit the shell, but when run non-interactively would set the exit code appropriately. Clearly, I was going too fast here on several counts. Apologies!
OS: Linux → All
Hardware: PC → All
QA Contact: pschwartau → xpconnect
Mass abdication.
Assignee: shaver → nobody
Per policy at https://wiki.mozilla.org/Bug_Triage/Projects/Bug_Handling/Bug_Husbandry#Inactive_Bugs. If this bug is not an enhancement request or a bug not present in a supported release of Firefox, then it may be reopened.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INACTIVE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: