From e895df2044bcbb2a564db96befbb2bed5da8b9a7 Mon Sep 17 00:00:00 2001 From: Anil Kumar Veldurthi Date: Mon, 22 Jun 2026 01:47:05 -0700 Subject: [PATCH] Make mcompiler-120 IT locale independent The verify script checked the full English warning text, so the IT failed under non-English locales. Check for a few stable keywords instead. Fixes #1055 --- src/it/mcompiler-120/verify.groovy | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/it/mcompiler-120/verify.groovy b/src/it/mcompiler-120/verify.groovy index cd6ef26ed..0848a6bcd 100644 --- a/src/it/mcompiler-120/verify.groovy +++ b/src/it/mcompiler-120/verify.groovy @@ -20,7 +20,12 @@ def logFile = new File( basedir, 'build.log' ) assert logFile.exists() content = logFile.text +/* + * The message expected by this test was "unchecked call to add(E) as a member of the raw type List". + * But we cannot test that message because it is locale-dependent. Check only a few keywords instead. + */ +assert content.contains( 'add(E)' ) +assert content.contains( 'List' ) // May be `List` or `java.util.List`. assert content.contains( 'Compilation failure' ) assert !content.contains( 'invalid flag' ) -assert content.contains( 'unchecked call to add(E) as a member of the raw type ' ) // List or java.util.List