adoptium / adoptium/aqa-tests

jdk21: MacPathTest.java & UnicodeTest.java consistently fail on https://ci.adoptium.net/label/ci.role.test&&hw.arch.x86&&%28sw.os.osx%7C%7Csw.os.mac%29&&macos10.14/

Open
#4,771 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
155
Forks
346
Avg merge
2d 9h
Merged PRs (30d)
36

Description

jdk21: MacPathTest.java & UnicodeTest.java consistently fail on https://ci.adoptium.net/label/ci.role.test&&hw.arch.x86&&%28sw.os.osx%7C%7Csw.os.mac%29&&macos10.14/
pass on https://ci.adoptium.net/label/ci.role.test&&hw.arch.x86&&%28sw.os.osx%7C%7Csw.os.mac%29&&macos12/

[java/nio/file/Path/MacPathTest.java.MacPathTest](https://ci.adoptium.net/job/Test_openjdk21_hs_extended.openjdk_x86-64_mac_testList_1/24/testReport/junit/java_nio_file_Path_MacPathTest/java/MacPathTest/)
[tools/launcher/UnicodeTest.java.UnicodeTest](https://ci.adoptium.net/job/Test_openjdk21_hs_extended.openjdk_x86-64_mac_testList_1/24/testReport/junit/tools_launcher_UnicodeTest/java/UnicodeTest/)

```
/Users/jenkins/workspace/Test_openjdk21_hs_extended.openjdk_x86-64_mac_testList_1/aqa-tests/TKG/output_16947093891661/jdk_tools_0/work/scratch/2/UnicodeTest-src/ClassAالعربية中文中文русскийहिंदीελληνικάעברית日本語한국어LietuviųčeštinaTürkçeespañolไทย.java:3: error: cannot find symbol
if (!ClassBالعربية中文中文русскийहिंदीελληνικάעברית日本語한국어LietuviųčeštinaTürkçeespañolไทย.classbالعربية中文中文русскийहिंदीελληνικάעב```
רית日本語한국어lietuviųčeštinatürkçeespañolไทย().equals("ClassBالعربية中文中文русскийहिंदीελληνικάעברית日本語한국어LietuviųčeštinaTürkçeespañolไทย")) {
^
symbol: variable ClassBالعربية中文中文русскийहिंदीελληνικάעברית日本語한국어LietuviųčeštinaTürkçeespañolไทย
location: class ClassAالعربية中文中文русскийहिंदीελληνικάעברית日本語한국어LietuviųčeštinaTürkçeespañolไทย
1 error
java.lang.Error: compilation failed:
at TestHelper.compile(TestHelper.java:278)
at UnicodeTest.main(UnicodeTest.java:75)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.Thread.run(Thread.java:1583)

JavaTest Message: Test threw exception: java.lang.Error: compilation failed:
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.lang.Error: compilation failed:
```

```
Exception in thread "main" java.lang.RuntimeException: File.equal() failed
at MacPath.test(MacPath.java:146)
at MacPath.main(MacPath.java:48)

stdout: [sun.jnu.encoding=UTF-8, file.encoding=UTF-8

--------Testing...----------
:Directory [TestDir_apple/dir_macosx][len=24] created
read in with nfc (from nfd):nfd
read in with nfd (from nfc):nfc
Found : [TestDir_apple/dir_macosx], length=24
--> Trying [TestDir_apple/dir_macosx], length=24... MATCHED!
--> Trying [TestDir_apple/file_macosx], length=25... NOT MATCHED!
--> Trying [TestDir_apple/file_macosx], length=25... NOT MATCHED!
Found : [TestDir_apple/file_macosx], length=25
--> Trying [TestDir_apple/dir_macosx], length=24... NOT MATCHED!
--> Trying [TestDir_apple/file_macosx], length=25... MATCHED!
--> Trying [TestDir_apple/file_macosx], length=25... MATCHED!
glob=*le_macosx
PathMatch : [TestDir_apple/file_macosx], length=25
--> Trying [TestDir_apple/file_macosx], length=25... MATCHED!

--------Testing...----------
:Directory [TestDir_トイヤニナル/dir_イチゴのケーキ][len=26] created
read in with nfc (from nfd):nfd
read in with nfd (from nfc):nfc
Found : [TestDir_トイヤニナル/dir_イチゴのケーキ], length=27
--> Trying [TestDir_トイヤニナル/dir_イチゴのケーキ], length=26... NOT MATCHED!
--> Trying [TestDir_トイヤニナル/file_イチゴのケーキ], length=27... NOT MATCHED!
--> Trying [TestDir_トイヤニナル/file_イチゴのケーキ], length=27... NOT MATCHED!
Found : [TestDir_トイヤニナル/file_イチゴのケーキ], length=28
--> Trying [TestDir_トイヤニナル/dir_イチゴのケーキ], length=26... NOT MATCHED!
--> Trying [TestDir_トイヤニナル/file_イチゴのケーキ], length=27... NOT MATCHED!
--> Trying [TestDir_トイヤニナル/file_イチゴのケーキ], length=27... NOT MATCHED!
];
stderr: [Exception in thread "main" java.lang.RuntimeException: File.equal() failed
at MacPath.test(MacPath.java:146)
at MacPath.main(MacPath.java:48)
]
exitValue = 1

java.lang.RuntimeException: Expected to get exit value of [0], exit value is: [1]
at jdk.test.lib.process.OutputAnalyzer.shouldHaveExitValue(OutputAnalyzer.java:490)
at MacPathTest.main(MacPathTest.java:60)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:333)
at java.base/java.lang.Thread.run(Thread.java:1583)

JavaTest Message: Test threw exception: java.lang.RuntimeException
JavaTest Message: shutting down test

```

Contributor guide

Open the contributing guide

Research direction

Start with MacPathTest.java and UnicodeTest.java, then inspect the reported failures at MacPath.java:146 and UnicodeTest.java:75, including TestHelper.java:278 for the compilation error. Reproduce the tests on macOS 10.14 and macOS 12 and determine what differs; done means both tests pass on the affected macOS environment without regressing the passing environment.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, macos
Domain
testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.