[System] Ignore FtpWebRequestTest.DownloadFile2_v6 test when IPv6 isn't available...
authorAlexander Köplinger <alex.koeplinger@outlook.com>
Wed, 4 Oct 2017 09:51:48 +0000 (11:51 +0200)
committerGitHub <noreply@github.com>
Wed, 4 Oct 2017 09:51:48 +0000 (11:51 +0200)
It fails on some systems otherwise. The other tests already had this check.

mcs/class/System/Test/System.Net/FtpWebRequestTest.cs

index 05654f49edd95980b5085014ece3423d5509c8a6..dd5df82310ba05891cc02abe68a8a8513f71d9ae 100644 (file)
@@ -389,6 +389,9 @@ namespace MonoTests.System.Net
 #endif
                public void DownloadFile2_v6 ()
                {
+                       if (!Socket.OSSupportsIPv6)
+                               Assert.Ignore ("IPv6 not supported.");
+
                        // Some embedded FTP servers in Industrial Automation Hardware report
                        // the PWD using backslashes, but allow forward slashes for CWD.
                        DownloadFile (new ServerDownload (@"\Users\someuser", "/Users/someuser/", null, true));