Fossil SCM

List skipped tests in the final summary.

preben 2023-11-17 17:37 testing-improvements
Commit c028f36de876860cef0705193d935d8edf0ad1cb6c08666116afe95c12d20704
1 file changed +7
--- test/tester.tcl
+++ test/tester.tcl
@@ -470,10 +470,12 @@
470470
}
471471
error "Could not delete \"$path\", error: $error"
472472
}
473473
474474
proc test_cleanup_then_return {} {
475
+ global skipped_tests testfile
476
+ lappend skipped_tests $testfile
475477
uplevel 1 [list test_cleanup]
476478
return -code return
477479
}
478480
479481
proc test_cleanup {} {
@@ -835,10 +837,11 @@
835837
}
836838
}
837839
}
838840
set bad_test {}
839841
set ignored_test {}
842
+set skipped_tests {}
840843
841844
# Return a random string N characters long.
842845
#
843846
set vocabulary 01234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
844847
append vocabulary " ()*^!.eeeeeeeeaaaaattiioo "
@@ -1112,8 +1115,12 @@
11121115
protOut "***** Ignored results: $nErr ignored errors out of $test_count tests" 1
11131116
}
11141117
if {$nErr>0} {
11151118
protOut "***** Ignored failures: $ignored_test" 1
11161119
}
1120
+set nSkipped [llength $skipped_tests]
1121
+if {$nSkipped>0} {
1122
+ protOut "***** Skipped tests: $skipped_tests" 1
1123
+}
11171124
if {$bad_test>0} {
11181125
exit 1
11191126
}
11201127
--- test/tester.tcl
+++ test/tester.tcl
@@ -470,10 +470,12 @@
470 }
471 error "Could not delete \"$path\", error: $error"
472 }
473
474 proc test_cleanup_then_return {} {
 
 
475 uplevel 1 [list test_cleanup]
476 return -code return
477 }
478
479 proc test_cleanup {} {
@@ -835,10 +837,11 @@
835 }
836 }
837 }
838 set bad_test {}
839 set ignored_test {}
 
840
841 # Return a random string N characters long.
842 #
843 set vocabulary 01234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
844 append vocabulary " ()*^!.eeeeeeeeaaaaattiioo "
@@ -1112,8 +1115,12 @@
1112 protOut "***** Ignored results: $nErr ignored errors out of $test_count tests" 1
1113 }
1114 if {$nErr>0} {
1115 protOut "***** Ignored failures: $ignored_test" 1
1116 }
 
 
 
 
1117 if {$bad_test>0} {
1118 exit 1
1119 }
1120
--- test/tester.tcl
+++ test/tester.tcl
@@ -470,10 +470,12 @@
470 }
471 error "Could not delete \"$path\", error: $error"
472 }
473
474 proc test_cleanup_then_return {} {
475 global skipped_tests testfile
476 lappend skipped_tests $testfile
477 uplevel 1 [list test_cleanup]
478 return -code return
479 }
480
481 proc test_cleanup {} {
@@ -835,10 +837,11 @@
837 }
838 }
839 }
840 set bad_test {}
841 set ignored_test {}
842 set skipped_tests {}
843
844 # Return a random string N characters long.
845 #
846 set vocabulary 01234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
847 append vocabulary " ()*^!.eeeeeeeeaaaaattiioo "
@@ -1112,8 +1115,12 @@
1115 protOut "***** Ignored results: $nErr ignored errors out of $test_count tests" 1
1116 }
1117 if {$nErr>0} {
1118 protOut "***** Ignored failures: $ignored_test" 1
1119 }
1120 set nSkipped [llength $skipped_tests]
1121 if {$nSkipped>0} {
1122 protOut "***** Skipped tests: $skipped_tests" 1
1123 }
1124 if {$bad_test>0} {
1125 exit 1
1126 }
1127

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button