Skip to content

Commit e895df2

Browse files
committed
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
1 parent 8ea735c commit e895df2

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/it/mcompiler-120/verify.groovy

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,12 @@ def logFile = new File( basedir, 'build.log' )
2020
assert logFile.exists()
2121
content = logFile.text
2222

23+
/*
24+
* The message expected by this test was "unchecked call to add(E) as a member of the raw type List".
25+
* But we cannot test that message because it is locale-dependent. Check only a few keywords instead.
26+
*/
27+
assert content.contains( 'add(E)' )
28+
assert content.contains( 'List' ) // May be `List` or `java.util.List`.
2329
assert content.contains( 'Compilation failure' )
2430
assert !content.contains( 'invalid flag' )
25-
assert content.contains( 'unchecked call to add(E) as a member of the raw type ' ) // List or java.util.List
2631

0 commit comments

Comments
 (0)