@@ -16,7 +16,7 @@ namespace System.Diagnostics.Tests
16
16
{
17
17
public class ProcessStreamReadTests : ProcessTestBase
18
18
{
19
- [ ConditionalFact ( typeof ( RemoteExecutor ) , nameof ( RemoteExecutor . IsSupported ) ) ]
19
+ // [ConditionalFact(typeof(RemoteExecutor), nameof(RemoteExecutor.IsSupported))]
20
20
public void TestSyncErrorStream ( )
21
21
{
22
22
Process p = CreateProcessPortable ( RemotelyInvokable . ErrorProcessBody ) ;
@@ -28,7 +28,7 @@ public void TestSyncErrorStream()
28
28
Assert . True ( p . WaitForExit ( WaitInMS ) ) ;
29
29
}
30
30
31
- [ ConditionalFact ( typeof ( RemoteExecutor ) , nameof ( RemoteExecutor . IsSupported ) ) ]
31
+ // [ConditionalFact(typeof(RemoteExecutor), nameof(RemoteExecutor.IsSupported))]
32
32
public void TestAsyncErrorStream ( )
33
33
{
34
34
for ( int i = 0 ; i < 2 ; ++ i )
@@ -55,7 +55,7 @@ public void TestAsyncErrorStream()
55
55
}
56
56
}
57
57
58
- [ ConditionalTheory ( typeof ( RemoteExecutor ) , nameof ( RemoteExecutor . IsSupported ) ) ]
58
+ // [ConditionalTheory(typeof(RemoteExecutor), nameof(RemoteExecutor.IsSupported))]
59
59
[ InlineData ( false ) ]
60
60
[ InlineData ( true ) ]
61
61
public void TestAsyncErrorStream_SynchronizingObject ( bool invokeRequired )
@@ -86,7 +86,7 @@ public void TestAsyncErrorStream_SynchronizingObject(bool invokeRequired)
86
86
Assert . Equal ( invokeRequired ? 3 : 0 , invokeCalled ) ;
87
87
}
88
88
89
- [ ConditionalFact ( typeof ( RemoteExecutor ) , nameof ( RemoteExecutor . IsSupported ) ) ]
89
+ // [ConditionalFact(typeof(RemoteExecutor), nameof(RemoteExecutor.IsSupported))]
90
90
public void TestSyncOutputStream ( )
91
91
{
92
92
Process p = CreateProcessPortable ( RemotelyInvokable . StreamBody ) ;
@@ -97,7 +97,7 @@ public void TestSyncOutputStream()
97
97
Assert . Equal ( RemotelyInvokable . TestConsoleApp + " started" + Environment . NewLine + RemotelyInvokable . TestConsoleApp + " closed" + Environment . NewLine , s ) ;
98
98
}
99
99
100
- [ ConditionalFact ( typeof ( RemoteExecutor ) , nameof ( RemoteExecutor . IsSupported ) ) ]
100
+ // [ConditionalFact(typeof(RemoteExecutor), nameof(RemoteExecutor.IsSupported))]
101
101
public void TestAsyncOutputStream ( )
102
102
{
103
103
for ( int i = 0 ; i < 2 ; ++ i )
@@ -123,7 +123,7 @@ public void TestAsyncOutputStream()
123
123
}
124
124
}
125
125
126
- [ ConditionalFact ( typeof ( RemoteExecutor ) , nameof ( RemoteExecutor . IsSupported ) ) ]
126
+ // [ConditionalFact(typeof(RemoteExecutor), nameof(RemoteExecutor.IsSupported))]
127
127
async public Task TestAsyncOutputStream_CancelOutputRead ( )
128
128
{
129
129
// This test might have some false negatives due to possible race condition in System.Diagnostics.AsyncStreamReader.ReadBufferAsync
@@ -206,7 +206,7 @@ async private Task<int> TestAsyncOutputStream_CancelOutputRead_RemotelyInvokable
206
206
}
207
207
}
208
208
209
- [ ConditionalFact ( typeof ( RemoteExecutor ) , nameof ( RemoteExecutor . IsSupported ) ) ]
209
+ // [ConditionalFact(typeof(RemoteExecutor), nameof(RemoteExecutor.IsSupported))]
210
210
async public Task TestAsyncOutputStream_BeginCancelBeginOutputRead ( )
211
211
{
212
212
using ( AnonymousPipeServerStream pipeWrite = new AnonymousPipeServerStream ( PipeDirection . Out , HandleInheritability . Inheritable ) )
@@ -345,7 +345,7 @@ async private Task<bool> WaitPipeSignal(PipeStream pipe, int millisecond)
345
345
}
346
346
347
347
[ SkipOnPlatform ( TestPlatforms . Windows , "currently on Windows these operations async-over-sync on Windows" ) ]
348
- [ ConditionalFact ( typeof ( RemoteExecutor ) , nameof ( RemoteExecutor . IsSupported ) ) ]
348
+ // [ConditionalFact(typeof(RemoteExecutor), nameof(RemoteExecutor.IsSupported))]
349
349
public async Task ReadAsync_OutputStreams_Cancel_RespondsQuickly ( )
350
350
{
351
351
Process p = CreateProcessLong ( ) ;
@@ -380,7 +380,7 @@ public async Task ReadAsync_OutputStreams_Cancel_RespondsQuickly()
380
380
}
381
381
}
382
382
383
- [ ConditionalFact ( typeof ( RemoteExecutor ) , nameof ( RemoteExecutor . IsSupported ) ) ]
383
+ // [ConditionalFact(typeof(RemoteExecutor), nameof(RemoteExecutor.IsSupported))]
384
384
public void TestSyncStreams ( )
385
385
{
386
386
const string expected = "This string should come as output" ;
@@ -397,7 +397,7 @@ public void TestSyncStreams()
397
397
p . WaitForExit ( ) ; // wait for event handlers to complete
398
398
}
399
399
400
- [ ConditionalFact ( typeof ( RemoteExecutor ) , nameof ( RemoteExecutor . IsSupported ) ) ]
400
+ // [ConditionalFact(typeof(RemoteExecutor), nameof(RemoteExecutor.IsSupported))]
401
401
public void TestEOFReceivedWhenStdInClosed ( )
402
402
{
403
403
// This is the test for the fix of https://github.com/dotnet/runtime/issues/19277.
@@ -452,7 +452,7 @@ public void TestEOFReceivedWhenStdInClosed()
452
452
p1 . Dispose ( ) ;
453
453
}
454
454
455
- [ ConditionalFact ( typeof ( RemoteExecutor ) , nameof ( RemoteExecutor . IsSupported ) ) ]
455
+ // [ConditionalFact(typeof(RemoteExecutor), nameof(RemoteExecutor.IsSupported))]
456
456
public void TestAsyncHalfCharacterAtATime ( )
457
457
{
458
458
var receivedOutput = false ;
@@ -493,7 +493,7 @@ public void TestAsyncHalfCharacterAtATime()
493
493
}
494
494
}
495
495
496
- [ ConditionalFact ( typeof ( RemoteExecutor ) , nameof ( RemoteExecutor . IsSupported ) ) ]
496
+ // [ConditionalFact(typeof(RemoteExecutor), nameof(RemoteExecutor.IsSupported))]
497
497
public void TestManyOutputLines ( )
498
498
{
499
499
const int ExpectedLineCount = 144 ;
@@ -521,7 +521,7 @@ public void TestManyOutputLines()
521
521
Assert . Equal ( ExpectedLineCount + 1 , totalLinesReceived ) ;
522
522
}
523
523
524
- [ ConditionalTheory ( typeof ( RemoteExecutor ) , nameof ( RemoteExecutor . IsSupported ) ) ]
524
+ // [ConditionalTheory(typeof(RemoteExecutor), nameof(RemoteExecutor.IsSupported))]
525
525
[ InlineData ( false ) ]
526
526
[ InlineData ( true ) ]
527
527
public void TestManyOutputLines_SynchronizingObject ( bool invokeRequired )
@@ -562,7 +562,7 @@ public void TestManyOutputLines_SynchronizingObject(bool invokeRequired)
562
562
Assert . Equal ( invokeRequired ? totalLinesReceived : 0 , invokeCalled ) ;
563
563
}
564
564
565
- [ ConditionalFact ( typeof ( RemoteExecutor ) , nameof ( RemoteExecutor . IsSupported ) ) ]
565
+ // [ConditionalFact(typeof(RemoteExecutor), nameof(RemoteExecutor.IsSupported))]
566
566
[ SkipOnCoreClr ( "Avoid asserts in FileStream.Read when concurrently disposed" , ~ RuntimeConfiguration . Release ) ]
567
567
public void TestClosingStreamsAsyncDoesNotThrow ( )
568
568
{
@@ -581,7 +581,7 @@ public void TestClosingStreamsAsyncDoesNotThrow()
581
581
RemotelyInvokable . FireClosedEvent ( ) ;
582
582
}
583
583
584
- [ ConditionalFact ( typeof ( RemoteExecutor ) , nameof ( RemoteExecutor . IsSupported ) ) ]
584
+ // [ConditionalFact(typeof(RemoteExecutor), nameof(RemoteExecutor.IsSupported))]
585
585
public void TestClosingStreamsUndefinedDoesNotThrow ( )
586
586
{
587
587
Process p = CreateProcessPortable ( RemotelyInvokable . WriteLinesAfterClose ) ;
@@ -593,7 +593,7 @@ public void TestClosingStreamsUndefinedDoesNotThrow()
593
593
RemotelyInvokable . FireClosedEvent ( ) ;
594
594
}
595
595
596
- [ ConditionalFact ( typeof ( RemoteExecutor ) , nameof ( RemoteExecutor . IsSupported ) ) ]
596
+ // [ConditionalFact(typeof(RemoteExecutor), nameof(RemoteExecutor.IsSupported))]
597
597
public void TestClosingSyncModeDoesNotCloseStreams ( )
598
598
{
599
599
Process p = CreateProcessPortable ( RemotelyInvokable . WriteLinesAfterClose ) ;
@@ -612,7 +612,7 @@ public void TestClosingSyncModeDoesNotCloseStreams()
612
612
error . ReadToEnd ( ) ;
613
613
}
614
614
615
- [ ConditionalFact ( typeof ( RemoteExecutor ) , nameof ( RemoteExecutor . IsSupported ) ) ]
615
+ // [ConditionalFact(typeof(RemoteExecutor), nameof(RemoteExecutor.IsSupported))]
616
616
public void TestStreamNegativeTests ( )
617
617
{
618
618
{
@@ -661,7 +661,7 @@ public void TestStreamNegativeTests()
661
661
}
662
662
}
663
663
664
- [ ConditionalFact ( typeof ( RemoteExecutor ) , nameof ( RemoteExecutor . IsSupported ) ) ]
664
+ // [ConditionalFact(typeof(RemoteExecutor), nameof(RemoteExecutor.IsSupported))]
665
665
public void TestCustomStandardInputEncoding ( )
666
666
{
667
667
var process = CreateProcessPortable ( RemotelyInvokable . ReadLineWithCustomEncodingWriteLineWithUtf8 , Encoding . UTF32 . WebName ) ;
@@ -682,7 +682,7 @@ public void TestCustomStandardInputEncoding()
682
682
Assert . Equal ( RemotelyInvokable . SuccessExitCode , process . ExitCode ) ;
683
683
}
684
684
685
- [ ConditionalFact ( typeof ( RemoteExecutor ) , nameof ( RemoteExecutor . IsSupported ) ) ]
685
+ // [ConditionalFact(typeof(RemoteExecutor), nameof(RemoteExecutor.IsSupported))]
686
686
public void TestMismatchedStandardInputEncoding ( )
687
687
{
688
688
var process = CreateProcessPortable ( RemotelyInvokable . ReadLineWithCustomEncodingWriteLineWithUtf8 , Encoding . UTF32 . WebName ) ;
0 commit comments