From 7deb18196d6b15c22dc10a2924d57208289e6905 Mon Sep 17 00:00:00 2001 From: Tomas Rylek Date: Thu, 3 Mar 2022 20:13:05 +0100 Subject: [PATCH] Don't add TestLibrary as a reference to all runtime tests When I was tagging several architecture-dependent runtime tests with the ConditionalFact attribute, I added CoreCLRTestLibrary as a general reference. This started causing timeouts in Mono AOT tests because the library needs to be compiled many times. As there's only a small number of architecture-dependent tests, I have modified the change so that the test library is only added explicitly to architecture-dependent tests. Fixes: #66083 Thanks Tomas --- src/tests/Directory.Build.targets | 3 ++- .../ELEMENT_TYPE_IU/i_array_merge_Target_32BIT_il_d.ilproj | 1 + .../ELEMENT_TYPE_IU/i_array_merge_Target_32BIT_il_r.ilproj | 1 + .../ELEMENT_TYPE_IU/i_array_merge_Target_64BIT_il_d.ilproj | 1 + .../ELEMENT_TYPE_IU/i_array_merge_Target_64BIT_il_r.ilproj | 1 + .../ELEMENT_TYPE_IU/u_array_merge_Target_32BIT_il_d.ilproj | 1 + .../ELEMENT_TYPE_IU/u_array_merge_Target_32BIT_il_r.ilproj | 1 + .../ELEMENT_TYPE_IU/u_array_merge_Target_64BIT_il_d.ilproj | 1 + .../ELEMENT_TYPE_IU/u_array_merge_Target_64BIT_il_r.ilproj | 1 + .../xxobj/sizeof/sizeof32_Target_32Bit_x86_il_d.ilproj | 1 + .../xxobj/sizeof/sizeof32_Target_32Bit_x86_il_r.ilproj | 1 + .../xxobj/sizeof/sizeof32_Target_64Bit_and_arm_il_d.ilproj | 1 + .../xxobj/sizeof/sizeof32_Target_64Bit_and_arm_il_r.ilproj | 1 + .../xxobj/sizeof/sizeof64_Target_32Bit_x86_il_d.ilproj | 1 + .../xxobj/sizeof/sizeof64_Target_32Bit_x86_il_r.ilproj | 1 + .../xxobj/sizeof/sizeof64_Target_64Bit_and_arm_il_d.ilproj | 1 + .../xxobj/sizeof/sizeof64_Target_64Bit_and_arm_il_r.ilproj | 1 + .../xxobj/sizeof/sizeof_Target_32Bit_x86_il_d.ilproj | 1 + .../xxobj/sizeof/sizeof_Target_32Bit_x86_il_r.ilproj | 1 + .../xxobj/sizeof/sizeof_Target_64Bit_and_arm_il_d.ilproj | 1 + .../xxobj/sizeof/sizeof_Target_64Bit_and_arm_il_r.ilproj | 1 + 21 files changed, 22 insertions(+), 1 deletion(-) diff --git a/src/tests/Directory.Build.targets b/src/tests/Directory.Build.targets index ca742f725a5f8..5ce3bc2a61789 100644 --- a/src/tests/Directory.Build.targets +++ b/src/tests/Directory.Build.targets @@ -67,10 +67,11 @@ None + $(RepoRoot)\src\tests\Common\CoreCLRTestLibrary\CoreCLRTestLibrary.csproj - +