Add references to xunit.*.dll to CLRTest.Crossgen.targets (#83413)
authorTomáš Rylek <trylek@microsoft.com>
Tue, 14 Mar 2023 22:59:42 +0000 (23:59 +0100)
committerGitHub <noreply@github.com>
Tue, 14 Mar 2023 22:59:42 +0000 (23:59 +0100)
commit2efdd7ec8566369926a3527411b0c95f2691416c
treea0cb54bd703071db227d8d2f0c5cc450c946837f
parent2bce58d438086668e41c74aa51c5be57842f63f2
Add references to xunit.*.dll to CLRTest.Crossgen.targets (#83413)

This change fixes the exceptions thrown from Crossgen2 JIT
interface when JIT tries to resolve tokens from xunit.assert.
As a secondary effect the frequent exception throws triggered
the race condition

https://github.com/dotnet/runtime/issues/81884

triggering non-deterministic native CoreCLR runtime failures on
arm64. I was originally reluctant to fix this primary issue until
the native runtime bug is understood as otherwise this fix would
just cause the issue to stop manifesting without being actually
fixed. As the runtime bug has been fixed by now, I am fixing
Crossgen2 executions to stop hitting these resolution exceptions.

Thanks

Tomas
src/tests/Common/CLRTest.CrossGen.targets