From b6c499631eec3981e0dc07fbc4a5c31150e4c8e8 Mon Sep 17 00:00:00 2001 From: Jo Shields Date: Thu, 15 Aug 2019 22:07:18 -0400 Subject: [PATCH] Exclude Authenticode tests on Watch (#16278) 1002a4de2b0d added Authenticode cert support on non-WatchOS. The tests, however, were not non-WatchOS-only. Fix this, so Watch doesn't try to run Authenticode tests. --- .../X509Certificate2Test.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mcs/class/System/Test/System.Security.Cryptography.X509Certificates/X509Certificate2Test.cs b/mcs/class/System/Test/System.Security.Cryptography.X509Certificates/X509Certificate2Test.cs index 65be3fcfe93..0881431c7a6 100644 --- a/mcs/class/System/Test/System.Security.Cryptography.X509Certificates/X509Certificate2Test.cs +++ b/mcs/class/System/Test/System.Security.Cryptography.X509Certificates/X509Certificate2Test.cs @@ -1908,6 +1908,7 @@ WYpnKQqsKIzlSqv9wwXs7B1iA7ZdvHk3TAnSnLP1o2H7ME05UnZPKCvraONdezon } } +#if !MONOTOUCH_WATCH private void CheckAuthenticode (X509Certificate2 x) { DateTime expectedNotAfter = new DateTime (632118306520000000, @@ -1975,6 +1976,7 @@ WYpnKQqsKIzlSqv9wwXs7B1iA7ZdvHk3TAnSnLP1o2H7ME05UnZPKCvraONdezon File.Delete (tempFile); } } +#endif private bool RunningOnWindows () { @@ -2052,7 +2054,9 @@ WYpnKQqsKIzlSqv9wwXs7B1iA7ZdvHk3TAnSnLP1o2H7ME05UnZPKCvraONdezon Assert.AreEqual (X509ContentType.Pkcs7, X509Certificate2.GetCertContentType (farscape_pkcs7), "1-Pkcs7"); +#if !MONOTOUCH_WATCH Assert.AreEqual (X509ContentType.Authenticode, X509Certificate2.GetCertContentType (helloworld_signed), "Authenticode"); +#endif } [Test] -- 2.11.4.GIT