FYI this is a relatively new test, and I think its a bug in IBM's jre. I found similar problems in ICU and i know IBM JRE's intl impl is different than sun's (maybe a newer icu version?)
I worked around these in the icu collation tests, and we might have to do the same here... we can't use "totally random" unicode strings or we might hit some bugs: http://bugs.icu-project.org/trac/ticket/8060 http://bugs.icu-project.org/trac/ticket/7732 On Mon, Mar 28, 2011 at 10:46 AM, Shai Erera <ser...@gmail.com> wrote: > My machine is hot at picking seeds today :). > > [junit] > [junit] junit.framework.AssertionFailedError: > [junit] at > org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1076) > [junit] at > org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1008) > [junit] at > org.apache.lucene.search.TestLocaleMethods.testSort(TestLocaleMethods.java:84) > [junit] > [junit] > [junit] Testcase: > testSort2(org.apache.lucene.search.TestLocaleMethods): FAILED > [junit] > [junit] junit.framework.AssertionFailedError: > [junit] at > org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1076) > [junit] at > org.apache.lucene.util.LuceneTestCase$LuceneTestCaseRunner.runChild(LuceneTestCase.java:1008) > [junit] at > org.apache.lucene.search.TestLocaleMethods.testSort2(TestLocaleMethods.java:100) > [junit] > [junit] > [junit] Tests run: 4, Failures: 2, Errors: 0, Time elapsed: 2.03 sec > [junit] > [junit] ------------- Standard Error ----------------- > [junit] NOTE: reproduce with: ant test -Dtestcase=TestLocaleMethods > -Dtestmethod=testSort -Dtests.seed=-6178492448073106006:6179706939192629911 > [junit] NOTE: reproduce with: ant test -Dtestcase=TestLocaleMethods > -Dtestmethod=testSort2 -Dtests.seed=-6178492448073106006:7745709510566497976 > [junit] NOTE: test params are: locale=tr_TR, timezone=GMT0 > [junit] NOTE: all tests run in this JVM: > [junit] [TestSearch, TestAnalyzers, TestISOLatin1AccentFilter, > TestStandardAnalyzer, TestTermAttributeImpl, TestAddIndexes, > TestDeletionPolicy, TestIndexFileDeleter, TestIndexWriterDelete, > TestIndexWriterWithThreads, TestNoDeletionPolicy, > TestParallelReaderEmptyIndex, TestSegmentInfo, TestStressIndexing, > TestTransactions, TestBoolean2, TestComplexExplanationsOfNonMatches, > TestElevationComparator, TestLocaleMethods] > [junit] NOTE: Windows 7 6.1 build 7600 amd64/IBM Corporation 1.6.0 > (64-bit)/cpus=2,threads=4,free=27719824,total=53872640 > [junit] ------------- ---------------- --------------- > > The first repro line fails both testSort and testSort2. It fails w/ an IBM > JRE, but passes w/ Sun's. The default locale picked by the test is tr_TR. > > Will investigate, though the test itself looks 'safe', so it must be > something behind the scenes that uses the default locale on us. > > Shai > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org