Skip to content

Commit 8f10082

Browse files
committed
Disable ProcessTest that fails sometime on Nano
Issue filed https://github.com/dotnet/corefx/issues/32780
1 parent 21d9f7d commit 8f10082

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

src/System.Diagnostics.Process/tests/ProcessTests.cs

+14-14
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public void TestBasePriorityOnWindows()
6969

7070
try
7171
{
72-
// We are not checking for RealTime case here, as RealTime priority process can
72+
// We are not checking for RealTime case here, as RealTime priority process can
7373
// preempt the threads of all other processes, including operating system processes
7474
// performing important tasks, which may cause the machine to be unresponsive.
7575

@@ -280,7 +280,7 @@ public void StartTime_GetNotStarted_ThrowsInvalidOperationException()
280280
public void TestId()
281281
{
282282
CreateDefaultProcess();
283-
283+
284284
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
285285
{
286286
Assert.Equal(_process.Id, Interop.GetProcessId(_process.SafeHandle));
@@ -339,7 +339,7 @@ public void Kill_NotStarted_ThrowsInvalidOperationException()
339339
public void TestMachineName()
340340
{
341341
CreateDefaultProcess();
342-
342+
343343
// Checking that the MachineName returns some value.
344344
Assert.NotNull(_process.MachineName);
345345
}
@@ -372,7 +372,7 @@ public void TestMainModule()
372372
public void TestMaxWorkingSet()
373373
{
374374
CreateDefaultProcess();
375-
375+
376376
using (Process p = Process.GetCurrentProcess())
377377
{
378378
Assert.True((long)p.MaxWorkingSet > 0);
@@ -427,7 +427,7 @@ public void MaxValueWorkingSet_GetSetMacos_ThrowsPlatformSupportedException()
427427
public void TestMinWorkingSet()
428428
{
429429
CreateDefaultProcess();
430-
430+
431431
using (Process p = Process.GetCurrentProcess())
432432
{
433433
Assert.True((long)p.MaxWorkingSet > 0);
@@ -499,7 +499,7 @@ public void TestModules()
499499
public void TestNonpagedSystemMemorySize64()
500500
{
501501
CreateDefaultProcess();
502-
502+
503503
AssertNonZeroWindowsZeroUnix(_process.NonpagedSystemMemorySize64);
504504
}
505505

@@ -650,7 +650,7 @@ public void WorkingSet64_GetNotStarted_ThrowsInvalidOperationException()
650650
public void TestProcessorTime()
651651
{
652652
CreateDefaultProcess();
653-
653+
654654
Assert.True(_process.UserProcessorTime.TotalSeconds >= 0);
655655
Assert.True(_process.PrivilegedProcessorTime.TotalSeconds >= 0);
656656

@@ -750,7 +750,7 @@ public void ExitTime_GetNotStarted_ThrowsInvalidOperationException()
750750
public void TestProcessorAffinity()
751751
{
752752
CreateDefaultProcess();
753-
753+
754754
IntPtr curProcessorAffinity = _process.ProcessorAffinity;
755755
try
756756
{
@@ -975,7 +975,7 @@ public void GetProcesses_RemoteMachinePath_ReturnsExpected()
975975
}
976976
}
977977

978-
[Fact]
978+
[ConditionalFact(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWindowsNanoServer))] // ActiveIssue: https://github.com/dotnet/corefx/issues/32780
979979
[SkipOnTargetFramework(TargetFrameworkMonikers.Uap, "Retrieving information about local processes is not supported on uap")]
980980
public void GetProcessesByName_ProcessName_ReturnsExpected()
981981
{
@@ -1025,7 +1025,7 @@ public void GetProcessesByName_RemoteMachineNameWindows_ReturnsExpected(string m
10251025
}
10261026
catch (InvalidOperationException)
10271027
{
1028-
// As we can't detect reliably if performance counters are enabled
1028+
// As we can't detect reliably if performance counters are enabled
10291029
// we let possible InvalidOperationExceptions pass silently.
10301030
}
10311031
}
@@ -1078,13 +1078,13 @@ void TestRemoteProccess(Process remoteProcess)
10781078
}
10791079
catch (InvalidOperationException)
10801080
{
1081-
// As we can't detect reliably if performance counters are enabled
1081+
// As we can't detect reliably if performance counters are enabled
10821082
// we let possible InvalidOperationExceptions pass silently.
10831083
}
10841084
}
10851085

10861086
[Fact]
1087-
[ActiveIssue(31908, TargetFrameworkMonikers.Uap)]
1087+
[ActiveIssue(31908, TargetFrameworkMonikers.Uap)]
10881088
public void StartInfo_GetFileName_ReturnsExpected()
10891089
{
10901090
Process process = CreateProcessLong();
@@ -1097,9 +1097,9 @@ public void StartInfo_GetFileName_ReturnsExpected()
10971097
process.Kill();
10981098
Assert.True(process.WaitForExit(WaitInMS));
10991099
}
1100-
1100+
11011101
[Fact]
1102-
[ActiveIssue(31908, TargetFrameworkMonikers.Uap)]
1102+
[ActiveIssue(31908, TargetFrameworkMonikers.Uap)]
11031103
public void StartInfo_SetOnRunningProcess_ThrowsInvalidOperationException()
11041104
{
11051105
Process process = CreateProcessLong();

0 commit comments

Comments
 (0)