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

github.com/mono/corefx.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKrzysztof Wicher <mordotymoja@gmail.com>2017-08-14 21:38:09 +0300
committerKrzysztof Wicher <mordotymoja@gmail.com>2017-08-14 21:38:17 +0300
commitfa91c3d651c53f520f3db7cbc44cb19e9b932274 (patch)
treefcb24d478200f66c22e7c0f2183016b4147555c7 /src/System.Private.Xml/tests/Xslt
parent70e08d8c556c71049299b37e251785ce96a2720f (diff)
fix intermittent issues caused by two different xsl tests accessing same
file
Diffstat (limited to 'src/System.Private.Xml/tests/Xslt')
-rw-r--r--src/System.Private.Xml/tests/Xslt/XslTransformApi/XSLTransform.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/System.Private.Xml/tests/Xslt/XslTransformApi/XSLTransform.cs b/src/System.Private.Xml/tests/Xslt/XslTransformApi/XSLTransform.cs
index 7cfa11895d..a75f8ea73c 100644
--- a/src/System.Private.Xml/tests/Xslt/XslTransformApi/XSLTransform.cs
+++ b/src/System.Private.Xml/tests/Xslt/XslTransformApi/XSLTransform.cs
@@ -49,7 +49,7 @@ namespace System.Xml.Tests
public class XsltApiTestCaseBase : FileCleanupTestBase
{
private const string XmlResolverDocumentName = "xmlResolver_document_function.xml";
- private static readonly string s_temporaryResolverDocumentFullName = Path.Combine(Path.GetTempPath(), XmlResolverDocumentName);
+ private static readonly string s_temporaryResolverDocumentFullName = Path.Combine(Path.GetTempPath(), "XslTransformApi", XmlResolverDocumentName);
private static readonly object s_temporaryResolverDocumentLock = new object();
// Generic data for all derived test cases
@@ -87,6 +87,8 @@ namespace System.Xml.Tests
// On uap access is denied to full path and the code below and related tests cannot run
if (!PlatformDetection.IsUap)
{
+ Directory.CreateDirectory(Path.GetDirectoryName(s_temporaryResolverDocumentFullName));
+
// Replace absolute URI in xmlResolver_document_function.xml based on the environment
string xslFile = Path.Combine("TestFiles", FilePathUtil.GetTestDataPath(), "XsltApi", "xmlResolver_document_function_absolute_uri.xsl");
XmlDocument doc = new XmlDocument();