[bcl tests] do not attempt to delete non-existing files
authorBernhard Urban <bernhard.urban@xamarin.com>
Mon, 19 Jun 2017 14:04:09 +0000 (16:04 +0200)
committerBernhard Urban <bernhard.urban@xamarin.com>
Tue, 20 Jun 2017 14:36:28 +0000 (16:36 +0200)
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.

mcs/class/corlib/Test/System.Security.Cryptography.X509Certificates/X509CapiTest.cs
mcs/class/corlib/Test/System.Security.Cryptography.X509Certificates/X509CertificateTest.cs

index f49cf1ac3cf7686ca80449cf64ba50532100ce92..63c3ce1e3a93abc22d4db8305eeff19e25fc2100 100644 (file)
@@ -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
index ee5c13285bf8fdb2210b00103954378a01435b59..3e6958d083b6c9235b39497ec57d2a30e40b73e8 100644 (file)
@@ -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 {