-
Bug
-
Resolution: Unresolved
-
P4
-
17, 21, 22
-
generic
-
os_x
The test java/awt/Choice/SelectNewItemTest/SelectNewItemTest.java fails on macOS14 Darwin Kernel Version 23.0.0 as follows:
```text
#section:main
----------messages:(7/273)----------
command: main SelectNewItemTest
reason: User specified action: run main SelectNewItemTest
started: Wed Sep 06 00:05:10 UTC 2023
Mode: othervm
Additional options from @modules: --add-modules java.desktop
finished: Wed Sep 06 00:05:15 UTC 2023
elapsed time (seconds): 5.084
----------configuration:(3/40)----------
Boot Layer
add modules: java.desktop
----------System.out:(1/18)----------
windowActivated()
----------System.err:(4/324)----------
java.lang.RuntimeException: Test case failed - expected to select a different item than 0
at SelectNewItemTest.run(SelectNewItemTest.java:122)
at java.base/java.lang.Thread.run(Thread.java:833)
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Test case failed - expected to select a different item than 0
```
Reproducibility: 100%
Steps to reproduce:
$ jtreg -v -testjdk:$JAVA_HOME test/jdk/java/awt/Choice/SelectNewItemTest/SelectNewItemTest.java
Please note: after completion the test shows desktop as it would be shown by pressing F11 that may affect tests executing after SelectNewItemTest in the same run.
One more note: it is reported that the test passes in spite of the test case failure:
```
result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Test case failed - expected to select a different item than 0
test result: Passed. OK
```
The issue was observed on 17, 21, 22
```text
#section:main
----------messages:(7/273)----------
command: main SelectNewItemTest
reason: User specified action: run main SelectNewItemTest
started: Wed Sep 06 00:05:10 UTC 2023
Mode: othervm
Additional options from @modules: --add-modules java.desktop
finished: Wed Sep 06 00:05:15 UTC 2023
elapsed time (seconds): 5.084
----------configuration:(3/40)----------
Boot Layer
add modules: java.desktop
----------System.out:(1/18)----------
windowActivated()
----------System.err:(4/324)----------
java.lang.RuntimeException: Test case failed - expected to select a different item than 0
at SelectNewItemTest.run(SelectNewItemTest.java:122)
at java.base/java.lang.Thread.run(Thread.java:833)
STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Test case failed - expected to select a different item than 0
```
Reproducibility: 100%
Steps to reproduce:
$ jtreg -v -testjdk:$JAVA_HOME test/jdk/java/awt/Choice/SelectNewItemTest/SelectNewItemTest.java
Please note: after completion the test shows desktop as it would be shown by pressing F11 that may affect tests executing after SelectNewItemTest in the same run.
One more note: it is reported that the test passes in spite of the test case failure:
```
result: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Test case failed - expected to select a different item than 0
test result: Passed. OK
```
The issue was observed on 17, 21, 22