[tools 2/2] testbot/reporttest: Use stubs instead of hand-coding successful tests.

Francois Gouget fgouget at codeweavers.com
Mon Feb 8 20:14:25 CST 2021


Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 testbot/src/reporttest/report.template | 21 ++++++---------------
 1 file changed, 6 insertions(+), 15 deletions(-)

diff --git a/testbot/src/reporttest/report.template b/testbot/src/reporttest/report.template
index 0a8f08720..3497f3361 100644
--- a/testbot/src/reporttest/report.template
+++ b/testbot/src/reporttest/report.template
@@ -301,11 +301,8 @@ advapi32:service:037c done (0) in 11s
 service.c:20: Test failed: A failure in the subprocess
 4567:service: 10 tests executed (0 marked as todo, 1 failure), 0 skipped.
 
-advpack:advpack start dlls/advpack/tests/advpack.c -
------ A standard successful test unit
------ Expected assessement: Success, unless the previous test interferes
-0da0:advpack: 99 tests executed (0 marked as todo, 0 failures), 0 skipped.
-advpack:advpack:0da0 done (0) in 0s
+----- Keep this stub in case the previous test is mishandled
+stub advpack:advpack
 
 advpack:files start dlls/advpack/tests/files.c -
 ----- A test unit with a failed test in the main process before a subprocess
@@ -458,11 +455,8 @@ comctl32:monthcal:0148 done (0) in 9s
 security.c:41: Test marked todo: Hello Wine!
 0955:security: 18 tests executed (1 marked as todo, 0 failures), 0 skipped.
 
-comctl32:mru start dlls/comctl32/tests/mru.c -
------ A standard successful test unit
------ Expected assessement: Success, unless the previous test interferes
-0148:mru: 2251 tests executed (0 marked as todo, 0 failures), 0 skipped.
-comctl32:mru:0148 done (0) in 9s
+----- Keep this stub in case the previous test is mishandled
+stub comctl32:mru
 
 comctl32:pager start dlls/comctl32/tests/pager.c -
 ----- A test unit with a misplaced subprocess skip test summary line
@@ -473,11 +467,8 @@ comctl32:pager:0148 done (0) in 9s
 security.c:42: Tests skipped: Another time
 0956:security: 18 tests executed (0 marked as todo, 0 failures), 1 skipped.
 
-comctl32:progress start dlls/comctl32/tests/progress.c -
------ A standard successful test unit
------ Expected assessement: Success
-0148:progress: 2251 tests executed (0 marked as todo, 0 failures), 0 skipped.
-comctl32:progress:0148 done (0) in 9s
+----- Keep this stub in case the previous test is mishandled
+stub comctl32:progress
 
 stub comctl32:propsheet
 
-- 
2.20.1



More information about the wine-devel mailing list