[qmtest] PATCH: Make use of expected outcomes in result streams more convenient

Mark Mitchell mark at codesourcery.com
Mon Oct 24 06:00:45 UTC 2005


Mark Mitchell wrote:
> This patch adds a _GetExpectedOutcome conveience method to ResultStream.
>  When ResultStreams are constructed, they are provided with the current
> list of expected test outcomes, if that list is available.  The intended
> semantics are that if no expectation is available, the expectation is
> PASS by default.  This new method encapsulates this information in a
> single place, so that various result stream classes can behave consistently.

I should also have commented on:

> 	(TextResultStream.DisplayResult): Treat Result.CAUSE annotation as
> 	HTML.

All Result annotations are HTML.  However, while TextResultStream
respected that fact for other annotations, the special handling for the
Result.CAUSE annotation (i.e., the annotation to which Result.ReadCause
and Result.WriteCauase apply) did not.  This part of the patch makes
TextResultStream consistent in that respect.

-- 
Mark Mitchell
CodeSourcery, LLC
mark at codesourcery.com
(916) 791-8304



More information about the qmtest mailing list