Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public void NoBranches_DoesNotReturnAttribute_InstrumentsCorrect()
}
}

[Fact]
[Fact(Skip = "Hang due to System.Console.ReadKey()")]
public void If_DoesNotReturnAttribute_InstrumentsCorrect()
{
string path = Path.GetTempFileName();
Expand Down Expand Up @@ -73,7 +73,7 @@ public void If_DoesNotReturnAttribute_InstrumentsCorrect()
}
}

[Fact]
[Fact(Skip = "Hang due to System.Console.ReadKey()")]
public void Switch_DoesNotReturnAttribute_InstrumentsCorrect()
{
string path = Path.GetTempFileName();
Expand Down Expand Up @@ -105,7 +105,7 @@ public void Switch_DoesNotReturnAttribute_InstrumentsCorrect()
}
}

[Fact]
[Fact(Skip = "Hang due to System.Console.ReadKey()")]
public void Subtle_DoesNotReturnAttribute_InstrumentsCorrect()
{
string path = Path.GetTempFileName();
Expand Down Expand Up @@ -137,7 +137,7 @@ public void Subtle_DoesNotReturnAttribute_InstrumentsCorrect()
}
}

[Fact]
[Fact(Skip = "Hang due to System.Console.ReadKey()")]
public void UnreachableBranch_DoesNotReturnAttribute_InstrumentsCorrect()
{
string path = Path.GetTempFileName();
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Threading;
using System.Threading.Tasks;
Expand Down Expand Up @@ -62,14 +63,21 @@ public void HitsOnMultipleThreadsCorrectlyCounted()
{
FunctionExecutor.Run(() =>
{
List<Thread> threads = new List<Thread>();
using var ctx = new TrackerContext();
ModuleTrackerTemplate.HitsArray = new[] { 0, 0, 0, 0 };
for (int i = 0; i < ModuleTrackerTemplate.HitsArray.Length; ++i)
{
var t = new Thread(HitIndex);
threads.Add(t);
t.Start(i);
}

foreach (Thread t in threads)
{
t.Join();
}

ModuleTrackerTemplate.UnloadModule(null, null);
var expectedHitsArray = new[] { 4, 3, 2, 1 };
Assert.Equal(expectedHitsArray, ReadHitsFile());
Expand Down