Imported Upstream version 6.0.0.197

Former-commit-id: ce8df4f105a5e534ae52c5975c6525634631b55b
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2019-04-25 08:34:32 +00:00
parent b8f7d9129e
commit 91848d672d
62 changed files with 72 additions and 47 deletions

View File

@ -180,7 +180,7 @@ namespace MonoTests.Mono.Security.Cryptography {
}
catch (CryptographicException ce) {
// not everyone can write to the machine store
if (!(ce.InnerException is UnauthorizedAccessException))
if (!(ce.InnerException is UnauthorizedAccessException) && !(ce.InnerException is IOException))
throw;
Assert.Ignore ("Access denied to key containers files.");
}
@ -208,7 +208,7 @@ namespace MonoTests.Mono.Security.Cryptography {
}
catch (CryptographicException ce) {
// not everyone can write to the machine store
if (!(ce.InnerException is UnauthorizedAccessException))
if (!(ce.InnerException is UnauthorizedAccessException) && !(ce.InnerException is IOException))
throw;
Assert.Ignore ("Access denied to key containers files.");
}