Skip to content

Commit 196f148

Browse files
Fix for symbols tests
1 parent 407f38b commit 196f148

File tree

1 file changed

+4
-0
lines changed
  • src/SourceBuild/content/test/Microsoft.DotNet.SourceBuild.Tests

1 file changed

+4
-0
lines changed

src/SourceBuild/content/test/Microsoft.DotNet.SourceBuild.Tests/SymbolsTests.cs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ private IList<string> VerifySdkFilesHaveMatchingSymbols(string symbolsRoot, stri
6666
{
6767
Assert.True(Directory.Exists(sdkRoot), $"Path, with SDK files to validate, does not exist: {sdkRoot}");
6868

69+
// Normalize paths, to ensure proper string replacement
70+
symbolsRoot = symbolsRoot.TrimEnd(Path.DirectorySeparatorChar);
71+
sdkRoot = sdkRoot.TrimEnd(Path.DirectorySeparatorChar);
72+
6973
var failedFiles = new ConcurrentBag<string>();
7074

7175
IEnumerable<string> allFiles = Directory.GetFiles(sdkRoot, "*", SearchOption.AllDirectories);

0 commit comments

Comments
 (0)