Project

General

Profile

« Previous | Next » 

Revision 6286d385

Added by larskanis (Lars Kanis) 5 months ago

Fix ENV tests on Windows on ARM64

Due to the x64 emulation of Windows 11 on ARM the environment variable PROCESSOR_ARCHITECTURE is set by the process startup code.
It must therefore be excluded from tests.
Otherwise tests fail like so:

[30585/32394] TestProcess#test_execopts_unsetenv_others = 0.10 s
 16) Failure:
TestProcess#test_execopts_unsetenv_others [C:/Users/Lars/ruby/test/ruby/test_process.rb:446]:
<""> expected but was
<"PROCESSOR_ARCHITECTURE=ARM64\n">.

[30616/32394] TestProcess#test_execopts_env = 0.16 s
 17) Failure:
TestProcess#test_execopts_env [C:/Users/Lars/ruby/test/ruby/test_process.rb:326]:
<"PATH\n"> expected but was
<"PATH\n" + "PROCESSOR_ARCHITECTURE\n">.