Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
gleocadie committed Nov 22, 2024
1 parent ebf0979 commit 09ffbd7
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,13 @@ public void CheckSignalHandlerIsInstalledOnce(string appName, string framework,
var logFile = Directory.GetFiles(runner.Environment.LogDir)
.Single(f => Path.GetFileName(f).StartsWith("DD-DotNet-Profiler-Native-"));

var nbSignalHandlerInstallation = File.ReadLines(logFile)
.Count(l => l.Contains("Successfully setup signal handler for"));
File.ReadLines(logFile)
.Count(l => l.Contains("Successfully setup signal handler for User defined signal 1 signal"))
.Should().Be(1);

nbSignalHandlerInstallation.Should().Be(1);
File.ReadLines(logFile)
.Count(l => l.Contains("Successfully setup signal handler for Profiling timer expired signal"))
.Should().Be(1);
}
}
}

0 comments on commit 09ffbd7

Please sign in to comment.