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:
authorFrederik Carlier <frederik.carlier@quamotion.mobi>2017-09-22 09:46:44 +0300
committerFrederik Carlier <frederik.carlier@quamotion.mobi>2017-09-22 09:46:44 +0300
commit8e10bd0066854399eca0d8a53a281a7b0e7c8b94 (patch)
treeb9d75a9d376441d5a669d621251dc1a5485b7937 /src/System.Drawing.Common
parent926c12917fac0e7d6ec2ed1ff25dd5f03ad0665a (diff)
Don't test for exceptions on long filenames on Unix (it doesn't matter there)
Finetune Ctor_InvalidPathII_ThrowsArgumentException
Diffstat (limited to 'src/System.Drawing.Common')
-rw-r--r--src/System.Drawing.Common/tests/Imaging/MetafileTests.cs11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/System.Drawing.Common/tests/Imaging/MetafileTests.cs b/src/System.Drawing.Common/tests/Imaging/MetafileTests.cs
index 297a05d1d2..efc249dcfc 100644
--- a/src/System.Drawing.Common/tests/Imaging/MetafileTests.cs
+++ b/src/System.Drawing.Common/tests/Imaging/MetafileTests.cs
@@ -487,6 +487,8 @@ namespace System.Drawing.Imaging.Tests
}
}
+ // Long paths aren't that much of a problem on Unix.
+ [ActiveIssue(20884, TestPlatforms.AnyUnix)]
[ConditionalFact(Helpers.GdiplusIsAvailable)]
public void Ctor_PathTooLong_ThrowsPathTooLongException()
{
@@ -763,16 +765,17 @@ namespace System.Drawing.Imaging.Tests
using (Graphics g = Graphics.FromImage(bmp))
{
IntPtr referenceHdc = g.GetHdc();
- AssertExtensions.Throws<ArgumentException>(null, () => new Metafile(fileName, referenceHdc, _rectangleF));
- AssertExtensions.Throws<ArgumentException>(null, () =>
+ AssertExtensions.Throws<ArgumentException, ArgumentException>(null, "path", () => new Metafile(fileName, referenceHdc, _rectangleF));
+ AssertExtensions.Throws<ArgumentException, ArgumentException>(null, "path", () =>
new Metafile(fileName, referenceHdc, _rectangleF, MetafileFrameUnit.GdiCompatible));
- AssertExtensions.Throws<ArgumentException>(null, () =>
+ AssertExtensions.Throws<ArgumentException, ArgumentException>(null, "path", () =>
new Metafile(fileName, referenceHdc, _rectangleF, MetafileFrameUnit.GdiCompatible, EmfType.EmfOnly));
- AssertExtensions.Throws<ArgumentException>(null, () =>
+ AssertExtensions.Throws<ArgumentException, ArgumentException>(null, "path", () =>
new Metafile(fileName, referenceHdc, _rectangleF, MetafileFrameUnit.GdiCompatible, EmfType.EmfOnly, "description"));
}
}
+ // Long paths aren't that much of a problem on Unix.
[ActiveIssue(20844, TestPlatforms.AnyUnix)]
[ConditionalFact(Helpers.GdiplusIsAvailable)]
public void Ctor_PathTooLongI_ThrowsPathTooLongException()