Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/mcs
diff options
context:
space:
mode:
authorBernhard Urban <bernhard.urban@xamarin.com>2017-06-19 17:04:09 +0300
committerBernhard Urban <bernhard.urban@xamarin.com>2017-06-20 17:37:16 +0300
commit0b522087c2d0ea1803d23b505ee5cb4184e8930b (patch)
treef90375fc826dc53c50c32b0c31df7871608646ff /mcs
parent911cc1d4386043983be1f4fea2453a26f626e578 (diff)
[bcl tests] do not attempt to delete non-existing files
This fixes an issue we see on the BCL test suite when run in the context of Xamarin Android: ``` I/mono-stdout( 2534): Certificate1 [FAIL] : TearDown : System.UnauthorizedAccessException : Access to the path "temp.b64" is denied. ``` It seems like those files aren't generated anymore. Not sure why this starts to be a problem now.
Diffstat (limited to 'mcs')
-rw-r--r--mcs/class/corlib/Test/System.Security.Cryptography.X509Certificates/X509CapiTest.cs2
-rw-r--r--mcs/class/corlib/Test/System.Security.Cryptography.X509Certificates/X509CertificateTest.cs1
2 files changed, 0 insertions, 3 deletions
diff --git a/mcs/class/corlib/Test/System.Security.Cryptography.X509Certificates/X509CapiTest.cs b/mcs/class/corlib/Test/System.Security.Cryptography.X509Certificates/X509CapiTest.cs
index f49cf1ac3cf..63c3ce1e3a9 100644
--- a/mcs/class/corlib/Test/System.Security.Cryptography.X509Certificates/X509CapiTest.cs
+++ b/mcs/class/corlib/Test/System.Security.Cryptography.X509Certificates/X509CapiTest.cs
@@ -68,8 +68,6 @@ namespace MonoTests.System.Security.Cryptography.X509Certificates {
public void TearDown ()
{
Thread.CurrentThread.CurrentCulture = oldcult;
- File.Delete("temp.cer");
- File.Delete("temp.b64");
}
#if !MOBILE && !MONOMAC
diff --git a/mcs/class/corlib/Test/System.Security.Cryptography.X509Certificates/X509CertificateTest.cs b/mcs/class/corlib/Test/System.Security.Cryptography.X509Certificates/X509CertificateTest.cs
index ee5c13285bf..3e6958d083b 100644
--- a/mcs/class/corlib/Test/System.Security.Cryptography.X509Certificates/X509CertificateTest.cs
+++ b/mcs/class/corlib/Test/System.Security.Cryptography.X509Certificates/X509CertificateTest.cs
@@ -37,7 +37,6 @@ public void SetUp () {
[TearDown]
public void TearDown () {
Thread.CurrentThread.CurrentCulture = oldcult;
- File.Delete("temp.b64");
try {
File.Delete (temp_certificate_filename);
} catch {