Skip to content

Commit 97fb195

Browse files
authored
Fix Typo in test failure warning (dotnet/linker#2660)
Changes "ExpectedWarning" to "ExpectedNoWarnings" Commit migrated from dotnet/linker@45b481f
1 parent 0782142 commit 97fb195

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/illink/test/Mono.Linker.Tests/TestCasesRunner/ResultChecker.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ void VerifyLoggedMessages (AssemblyDefinition original, LinkerTestLogger logger,
845845
foreach ((var attrProvider, var attr) in expectedNoWarningsAttributes) {
846846
var unexpectedWarningCode = attr.ConstructorArguments.Count == 0 ? null : (string) attr.GetConstructorArgumentValue (0);
847847
if (unexpectedWarningCode != null && !unexpectedWarningCode.StartsWith ("IL")) {
848-
Assert.Fail ($"The warning code specified in ExpectedWarning attribute must start with the 'IL' prefix. Specified value: '{unexpectedWarningCode}'.");
848+
Assert.Fail ($"The warning code specified in ExpectedNoWarnings attribute must start with the 'IL' prefix. Specified value: '{unexpectedWarningCode}'.");
849849
}
850850

851851
int? unexpectedWarningCodeNumber = unexpectedWarningCode == null ? null : int.Parse (unexpectedWarningCode.Substring (2));

0 commit comments

Comments
 (0)