Fossil SCM

The new test_block_in_checkout proc in tester.tcl was not setting the CODE and RESULT global variables when it skipped a test, so there was a chance that a test would end up checking the prior values and throw a false positive.

wyoung 2018-09-03 06:15 wrap-run_in_checkout
Commit 2aaee4841e0f7587538dd19791466f1bea35e43ecb9adfef457bd383f0d2929b
1 file changed +2
--- test/tester.tcl
+++ test/tester.tcl
@@ -550,10 +550,12 @@
550550
#
551551
# Be sure to adhere to the requirements of run_in_checkout!
552552
proc test_block_in_checkout { name rscript {tscript ""} } {
553553
if {$::outside_fossil_repo} {
554554
puts "Skipping $name test: not in Fossil repo checkout."
555
+ set $::CODE 0
556
+ set $::RESULT ""
555557
} else {
556558
run_in_checkout $rscript
557559
if {[string length $tscript] == 0} {
558560
return ""
559561
} else {
560562
--- test/tester.tcl
+++ test/tester.tcl
@@ -550,10 +550,12 @@
550 #
551 # Be sure to adhere to the requirements of run_in_checkout!
552 proc test_block_in_checkout { name rscript {tscript ""} } {
553 if {$::outside_fossil_repo} {
554 puts "Skipping $name test: not in Fossil repo checkout."
 
 
555 } else {
556 run_in_checkout $rscript
557 if {[string length $tscript] == 0} {
558 return ""
559 } else {
560
--- test/tester.tcl
+++ test/tester.tcl
@@ -550,10 +550,12 @@
550 #
551 # Be sure to adhere to the requirements of run_in_checkout!
552 proc test_block_in_checkout { name rscript {tscript ""} } {
553 if {$::outside_fossil_repo} {
554 puts "Skipping $name test: not in Fossil repo checkout."
555 set $::CODE 0
556 set $::RESULT ""
557 } else {
558 run_in_checkout $rscript
559 if {[string length $tscript] == 0} {
560 return ""
561 } else {
562

Keyboard Shortcuts

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