Closed
Bug 373836
Opened 19 years ago
Closed 17 years ago
reftest should make an effort to detect most hangs
Categories
(Testing :: Reftest, enhancement)
Testing
Reftest
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: Waldo, Assigned: Waldo)
Details
(Keywords: autotest-issue)
Impossible, you think? Wrong!
- at startup, create a new thread which handles writing pass/fail messages to
the console
- main thread continues loading; for each test, a pass/fail notification is
dispatched to the second thread
- if the new thread detects no pass/fail notifications over some sufficiently
long period of time, it prints a FAIL hang message to the console and exits
We might need a component to do the exiting, because nsIAppStartup.quit() may be too well-mannered to do the job. This won't catch every hang, but it'll catch most of them. Are there any problems with this idea that I've missed somehow?
Comment 1•19 years ago
|
||
I'm worried that using threads could make output appear out of order. How about using an external process instead, and using it for all tinderbox tests (not just reftest)?
| Assignee | ||
Comment 2•19 years ago
|
||
(In reply to comment #1)
> I'm worried that using threads could make output appear out of order.
Why would it? If the notifications are only being sent from one thread, then the events can only be posted to it in the correct order (and output scrambling's not a problem, either, with output buffering).
> How about using an external process instead, and using it for all tinderbox
> tests (not just reftest)?
That's another option, but you'd have to scrape stdout/stderr, which feels much more painful.
Component: Layout: Misc Code → Reftest
Product: Core → Testing
Version: Trunk → unspecified
Comment 3•17 years ago
|
||
I think we already have a stdout/stderr scraper that complains like "no output for 300 seconds".
| Assignee | ||
Comment 4•17 years ago
|
||
Yeah, this probably isn't worthwhile.
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•