Skip to content

Commit

Permalink
fix test (failed tests must generate failure in GHA flow) - ::tcltest…
Browse files Browse the repository at this point in the history
…::ReportToMaster got renamed to ::tcltest::ReportToParent in 8.6.11
  • Loading branch information
sebres committed Oct 29, 2024
1 parent 723c71d commit 161747c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/all.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ proc ::tcltest::__ReportSummary {} {
}
puts [outputChannel] ""
}
proc ::tcltest::__ReportToMaster {total passed skipped failed skippedLst args} {
proc ::tcltest::__ReportToParent {total passed skipped failed skippedLst args} {
array set ::TestSummary [list \
Total $total Passed $passed Skipped $skipped Failed $failed skippedBecauseLst $skippedLst args $args]
incr ::TestSummary(TotFailed) $failed
Expand Down Expand Up @@ -76,7 +76,7 @@ foreach testfile [::tcltest::__SortFiles [::tcltest::GetMatchingFiles $TESTDIR]]
set slave [interp create]
interp eval $slave [package ifneeded tcltest $tcltest::Version]
$slave eval {namespace import tcltest::*}
interp alias $slave ::tcltest::ReportToMaster {} ::tcltest::__ReportToMaster
interp alias $slave ::tcltest::ReportToParent {} ::tcltest::__ReportToParent
$slave eval [list set TESTFILE [file join $TESTDIR $testfile]]
$slave eval [list set BUILDDIR $BUILDDIR]
$slave eval [list ::tcltest::configure {*}$TEST_OPTIONS]
Expand Down

0 comments on commit 161747c

Please sign in to comment.