Disable Connection_UnderDifferentUsers_BehavesAsExpected test on Fedora (dotnet/coref...
authorStephen Toub <stoub@microsoft.com>
Mon, 15 Jul 2019 19:22:33 +0000 (15:22 -0400)
committerGitHub <noreply@github.com>
Mon, 15 Jul 2019 19:22:33 +0000 (15:22 -0400)
Commit migrated from https://github.com/dotnet/corefx/commit/ace61287bee166a3777f5b3832295902a58ca79a

src/libraries/System.IO.Pipes/tests/NamedPipeTests/NamedPipeTest.CurrentUserOnly.netcoreapp.Unix.cs

index f9a34c5..fd5c694 100644 (file)
@@ -16,7 +16,7 @@ namespace System.IO.Pipes.Tests
     /// </summary>
     public class NamedPipeTest_CurrentUserOnly_Unix
     {
-        [Theory]
+        [ConditionalTheory]
         [OuterLoop("Needs sudo access")]
         [Trait(XunitConstants.Category, XunitConstants.RequiresElevation)]
         [InlineData(PipeOptions.None, PipeOptions.None)]
@@ -26,6 +26,12 @@ namespace System.IO.Pipes.Tests
         public async Task Connection_UnderDifferentUsers_BehavesAsExpected(
             PipeOptions serverPipeOptions, PipeOptions clientPipeOptions)
         {
+            if (PlatformDetection.IsFedora)
+            {
+                // [ActiveIssue(38834)]
+                throw new SkipTestException("Failing on Fedora by not throwing expected exception");
+            }
+
             // Use an absolute path, otherwise, the test can fail if the remote invoker and test runner have
             // different working and/or temp directories. 
             string pipeName = "/tmp/" + Path.GetRandomFileName();