[TOOLS] Cater for multiple 'tests executed' lines

Paul Vriens paul.vriens.wine at gmail.com
Thu Mar 1 03:45:02 CST 2007


Hi,

This patch makes sure that multiple lines (coming from child processes) are
added up to produce a total of executed tests, failures and todo's.

The patch works for the following (type of) lines in the report:

tests/shellpath.c: 10 tests executed (0 marked as todo, 4 failures), 0 skipped.
tests/shellpath.c: 4 tests executed (0 marked as todo, 0 failures), 0 skipped.
shellpath: 452 tests executed (0 marked as todo, 0 failures), 0 skipped.

In the above case it means that from now one test.winehq.org will show 466 tests
executed with 0 todo's and 4 failures (instead of previously 452,0,0).

The patch also covers the previously mentioned issue with the ntdll-exception test.

Instead of relying on the 'tests executed' lines for the marking of the end of a
test, I'm now using the (more appropriate) 'done'.

The use of the $lines variable was needed because there are tests that have a
(0,0,0) result. They should probably be changed to use the skip infrastructure.

Both dissect and gather do not make use of the skipped number yet.

Changelog
    Cater for multiple 'tests executed' lines

Cheers,

Paul.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: dissect.diff
Type: text/x-patch
Size: 2436 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20070301/b1f00864/dissect-0001.bin


More information about the wine-patches mailing list