JDK-8241250 : New sun/nio/cs/TestMS950.java test fails
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.nio.charsets
  • Affected Version: 15
  • Priority: P2
  • Status: Closed
  • Resolution: Not an Issue
  • Submitted: 2020-03-19
  • Updated: 2020-03-23
  • Resolved: 2020-03-23
Related Reports
Relates :  
Description
Current tier2 tests fail because of this:

$ CONF=linux-x86_64-server-fastdebug make images run-test TEST=sun/nio/cs/TestMS950.java

STDOUT:
c2b: u2550, expected:0xF9F9, result:0xA2A4
c2b: u255E, expected:0xF9E9, result:0xA2A5
c2b: u256A, expected:0xF9EA, result:0xA2A6
c2b: u2561, expected:0xF9EB, result:0xA2A7
STDERR:
java.lang.Exception: Failed
        at TestMS950.main(TestMS950.java:148)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:564)
        at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:298)
        at java.base/java.lang.Thread.run(Thread.java:832)

I wonder if the test is locale-specific? Test was added recently by JDK-8232161.
Comments
Right, thanks. I removed build/ completely, and fresh build does not fail the test. Closing as Not an Issue.
23-03-2020

If you use incremental make, please run "make clean-gensrc". Then run "CONF=linux-x86_64-server-fastdebug make images run-test TEST=sun/nio/cs/TestMS950.java" again ?
23-03-2020

Sorry, I'm late. I ran TestMS950 testcase on C and ja_JP.UTF-8 locale on CentOS7. I could not recreate this issue. $ LANG=C CONF=linux-x86_64-server-fastdebug make run-test TEST=sun/nio/cs/TestMS950.java Building target 'run-test' in configuration 'linux-x86_64-server-fastdebug' Test selection 'sun/nio/cs/TestMS950.java', will run: * jtreg:test/jdk/sun/nio/cs/TestMS950.java Running test 'jtreg:test/jdk/sun/nio/cs/TestMS950.java' Passed: sun/nio/cs/TestMS950.java Test results: passed: 1 Report written to /home/xxx/sandbox/jdk/build/linux-x86_64-server-fastdebug/test-results/jtreg_test_jdk_sun_nio_cs_TestMS950_java/html/report.html Results written to /home/xxx/sandbox/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_sun_nio_cs_TestMS950_java Finished running test 'jtreg:test/jdk/sun/nio/cs/TestMS950.java' Test report is stored in build/linux-x86_64-server-fastdebug/test-results/jtreg_test_jdk_sun_nio_cs_TestMS950_java ============================== Test summary ============================== TEST TOTAL PASS FAIL ERROR jtreg:test/jdk/sun/nio/cs/TestMS950.java 1 1 0 0 ============================== TEST SUCCESS Finished building target 'run-test' in configuration 'linux-x86_64-server-fastdebug' $ LANG=ja_JP.UTF-8 CONF=linux-x86_64-server-fastdebug make run-test TEST=sun/nio/cs/TestMS950.java Building target 'run-test' in configuration 'linux-x86_64-server-fastdebug' Test selection 'sun/nio/cs/TestMS950.java', will run: * jtreg:test/jdk/sun/nio/cs/TestMS950.java Running test 'jtreg:test/jdk/sun/nio/cs/TestMS950.java' Passed: sun/nio/cs/TestMS950.java Test results: passed: 1 Report written to /home/xxx/sandbox/jdk/build/linux-x86_64-server-fastdebug/test-results/jtreg_test_jdk_sun_nio_cs_TestMS950_java/html/report.html Results written to /home/xxx/sandbox/jdk/build/linux-x86_64-server-fastdebug/test-support/jtreg_test_jdk_sun_nio_cs_TestMS950_java Finished running test 'jtreg:test/jdk/sun/nio/cs/TestMS950.java' Test report is stored in build/linux-x86_64-server-fastdebug/test-results/jtreg_test_jdk_sun_nio_cs_TestMS950_java ============================== Test summary ============================== TEST TOTAL PASS FAIL ERROR jtreg:test/jdk/sun/nio/cs/TestMS950.java 1 1 0 0 ============================== TEST SUCCESS Finished building target 'run-test' in configuration 'linux-x86_64-server-fastdebug' $ Also I tried to run TestMS950 on Windows and another Linux platform. I could not create this issue.
23-03-2020