RE: [Test Breakage 2.46.0-rc0] Test t0021.35 fails on NonStop
On Monday, July 15, 2024 12:42 PM, Junio C Hamano wrote:
><rsbecker@nexbridge.com> writes:
>
>> What is strange is that when running on NonStop using ksh, t0000.1 has
>> never failed. I think the situation is subtly different from what we are
Show 6 quoted lines
>> My take is that there is a difference in the local vs. non-local
>> variable set semantic, rather than just accepting the keyword. I would
>> propose that we need a more comprehensive local test to verify the
>> actual expected semantics rather than just testing the syntax.
>
>It is possible that I may be misreading that first test, but as far as I
>testing not just the syntax but tests how the variables declared "local"
>should notice if they are not localized. It checks that "local"
>try_local_xy does take effect, and (more importantly) after try_local_xy
>original values are restored.
>
>As I speculated earlier in an earlier message, the breakage you reported
>do with interaction between "local" and use of a subshell, and perhaps we
>check that pattern in the test.
That is that I am also suggesting but did not say it as precisely. Thanks.