diff options
author | Jo Shields <joshield@microsoft.com> | 2019-08-16 05:07:18 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-08-16 05:07:18 +0300 |
commit | b6c499631eec3981e0dc07fbc4a5c31150e4c8e8 (patch) | |
tree | 79f8142d2d2fc0c28ce5fe8f7640fb454fd29117 /mcs/class/System | |
parent | 764091677eb717da8cf5799c2b625fd529c3e93a (diff) |
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.
Diffstat (limited to 'mcs/class/System')
-rw-r--r-- | mcs/class/System/Test/System.Security.Cryptography.X509Certificates/X509Certificate2Test.cs | 4 |
1 files changed, 4 insertions, 0 deletions
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] |