File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -660,6 +660,11 @@ if {[info exists env(TESTSUITE_ENABLE_SITECONFIG_CHANGECONTEXTOFMODULEEVAL)]} {
660660 }
661661}
662662
663+ # specific tests to improve getLoadedPrereqPath coverage
664+ if {[info exists env(TESTSUITE_ENABLE_SITECONFIG_GETLOADEDPREREQPATH)]} {
665+ set ::g_loadedModulePrereqPath(foo) {bar mp}
666+ report [string length [getLoadedPrereqPath foo qux]]
667+ }
663668
664669
665670}
Original file line number Diff line number Diff line change @@ -727,6 +727,13 @@ lappend ans $vers_reportre
727727testouterr_cmd_re sh -V OK [join $ans \n]
728728unsetenv_var TESTSUITE_ENABLE_SITECONFIG_CHANGECONTEXTOFMODULEEVAL
729729
730+ setenv_var TESTSUITE_ENABLE_SITECONFIG_GETLOADEDPREREQPATH 1
731+ set ans [list]
732+ lappend ans 0
733+ lappend ans $vers_reportre
734+ testouterr_cmd_re sh -V OK [join $ans \n]
735+ unsetenv_var TESTSUITE_ENABLE_SITECONFIG_GETLOADEDPREREQPATH
736+
730737
731738} elseif {$verbose} {
732739 send_user "\tSkip tests relying on an excepted siteconfig file installed\n"
You can’t perform that action at this time.
0 commit comments