You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ts: cover autosymbol skip when latest is already an error entry
The autosymbol block in getModules only defines an auto "latest"
symbol for a directory element when no entry already exists for that
name, or an existing one is in error -- in which case it still leaves
the existing entry alone and only attempts resolution again. No
existing fixture had a real "latest" symbolic version that was itself
also forbidden, so the branch handling an existing (error) entry, as
opposed to the plain not-found case, was never taken.
Add autosym10: a module whose real "2" version is also named "latest"
through an explicit module-version, with that exact symbolic name
targeted by both module-forbid and a hard module-hide. Querying or
loading it by the real name still resolves normally, but the "latest"
name itself stays access-denied rather than falling back to an
autosymbol pointing at the same module, since found_list already
carries an (error) entry for it by the time the autosymbol phase runs.
Verified with 'script/mt 70/274' (229 passes), plus the tests that
enumerate this fixture's modulepath wholesale (avail/spider long
listings, extra-spec/json/output tests) to confirm the new fixture
does not change their expected output, not the full suite.
Assisted-by: Claude:claude-sonnet-5
Signed-off-by: Xavier Delaruelle <xavier.delaruelle@cea.fr>
Copy file name to clipboardExpand all lines: testsuite/modules.51-scan/033-scan_eval-spider.exp
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -190,7 +190,7 @@ scan/2.1{foo=val1,val2,val3}"
190
190
testouterr_cmd sh {spider -t -o tag:variant:sym:alias scan} OK $tserr
191
191
192
192
set tserr ".*
193
-
Get modules: {foo/globalsymscan/globalsymfoo/globalunkscan/globalunk} matching 'foo=val4' in ''
193
+
Get modules: {(foo/globalsym|scan/globalsym|foo/globalunk|scan/globalunk) (foo/globalsym|scan/globalsym|foo/globalunk|scan/globalunk) (foo/globalsym|scan/globalsym|foo/globalunk|scan/globalunk) (foo/globalsym|scan/globalsym|foo/globalunk|scan/globalunk)} matching 'foo=val4' in ''
194
194
.*
195
195
Get modules: {((source|scan|foo).* )*(source|scan|foo).*} matching 'foo=val4' in '$mpre'
0 commit comments