From 7172a7df05980d8bd79bb618e9d8f968d3697433 Mon Sep 17 00:00:00 2001 From: Sven Boemer Date: Tue, 18 Jun 2024 16:38:10 -0700 Subject: [PATCH] Remove cecil version check (#103665) Fixes https://github.com/dotnet/runtime/issues/103563. The fix in [cecil](https://github.com/dotnet/cecil/pull/192) is taking too long to [flow](https://github.com/dotnet/runtime/pull/103574), and the test is no longer needed per https://github.com/dotnet/runtime/issues/103589. --- .../Tests/CecilVersionCheck.cs | 28 ------------------- 1 file changed, 28 deletions(-) delete mode 100644 src/tools/illink/test/Mono.Linker.Tests/Tests/CecilVersionCheck.cs diff --git a/src/tools/illink/test/Mono.Linker.Tests/Tests/CecilVersionCheck.cs b/src/tools/illink/test/Mono.Linker.Tests/Tests/CecilVersionCheck.cs deleted file mode 100644 index 909d0d410c633b..00000000000000 --- a/src/tools/illink/test/Mono.Linker.Tests/Tests/CecilVersionCheck.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) .NET Foundation and contributors. All rights reserved. -// Licensed under the MIT license. See LICENSE file in the project root for full license information. - -using System; -using System.Linq; -using System.Reflection; -using NUnit.Framework; - -namespace Mono.Linker.Tests -{ - [TestFixture] - public class CecilVersionCheck - { - [TestCase] - public void CecilPackageVersionMatchesAssemblyVersion() - { - string cecilPackageVersion = (string)AppContext.GetData("Mono.Linker.Tests.CecilPackageVersion")!; - // Assume that the test assembly builds against the same cecil as ILLink. - var cecilAssemblyVersion = Assembly - .GetExecutingAssembly() - .GetReferencedAssemblies() - .Single(an => an.Name == "Mono.Cecil") - .Version; - - Assert.AreEqual(cecilPackageVersion.AsSpan(0,6).ToString(), cecilAssemblyVersion.ToString(3)); - } - } -}