diff options
author | Sebastien Pouliot <sebastien@xamarin.com> | 2013-03-22 22:03:30 +0400 |
---|---|---|
committer | Sebastien Pouliot <sebastien@xamarin.com> | 2013-03-23 01:20:41 +0400 |
commit | 71d027fb55bd8ddc4956265f82c88f97c60eef97 (patch) | |
tree | 6d43da5806931efb18471c1e5999eb481217bb85 /mcs | |
parent | e816267243a743557ba417ad54bf83f8f435700d (diff) |
Open test files in read-only mode (so it will work on devices where permissions won't allow read/write)
Diffstat (limited to 'mcs')
-rw-r--r-- | mcs/class/System.Web.Services/Test/System.Web.Services.Description/ServiceDescriptionTest.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mcs/class/System.Web.Services/Test/System.Web.Services.Description/ServiceDescriptionTest.cs b/mcs/class/System.Web.Services/Test/System.Web.Services.Description/ServiceDescriptionTest.cs index 99fe6c62b0d..a0c0489d701 100644 --- a/mcs/class/System.Web.Services/Test/System.Web.Services.Description/ServiceDescriptionTest.cs +++ b/mcs/class/System.Web.Services/Test/System.Web.Services.Description/ServiceDescriptionTest.cs @@ -59,7 +59,7 @@ namespace MonoTests.System.Web.Services.Description [Test] public void Namespaces () { - FileStream fs = new FileStream ("Test/System.Web.Services.Description/test.wsdl", FileMode.Open); + FileStream fs = new FileStream ("Test/System.Web.Services.Description/test.wsdl", FileMode.Open, FileAccess.Read); XmlTextReader xtr = new XmlTextReader (fs); ServiceDescription sd = ServiceDescription.Read (xtr); @@ -84,7 +84,7 @@ namespace MonoTests.System.Web.Services.Description [Test] public void ExtensibleAttributes () { - FileStream fs = new FileStream("Test/System.Web.Services.Description/test.wsdl", FileMode.Open); + FileStream fs = new FileStream ("Test/System.Web.Services.Description/test.wsdl", FileMode.Open, FileAccess.Read); XmlTextReader xtr = new XmlTextReader(fs); ServiceDescription sd = ServiceDescription.Read(xtr); @@ -105,7 +105,7 @@ namespace MonoTests.System.Web.Services.Description [Test] public void Extensions () { - FileStream fs = new FileStream("Test/System.Web.Services.Description/test.wsdl", FileMode.Open); + FileStream fs = new FileStream("Test/System.Web.Services.Description/test.wsdl", FileMode.Open, FileAccess.Read); XmlTextReader xtr = new XmlTextReader(fs); ServiceDescription sd = ServiceDescription.Read(xtr); |