8241415: tools/jpackage/share/RuntimePackageTest.java fails because of systemPrefs files

Baesken, Matthias matthias.baesken at sap.com
Mon Mar 23 07:44:51 UTC 2020

Hello, we noticed the following issue in tools/jpackage/share/RuntimePackageTest.java .
See also https://bugs.openjdk.java.net/browse/JDK-8241415  .

When running a whole jdk jtreg test suite we see failures of the the tools/jpackage/share/RuntimePackageTest.java test.
Failures are like this :

TRACE: Missing 3 files:
TRACE: .systemPrefs
TRACE: .systemPrefs/.system.lock
TRACE: .systemPrefs/.systemRootModFile
ERROR: Failed: Check there are no missing files in installed image

Looking into the jdk under test, we notice the mentioned files were created inside the jdk under test
(by previous jtreg tests, this is indicated by the time stamps of those files).
my estimation is that some other tests using FileSystemPreferences might created those files.
The RuntimePackageTest.java test however does not expect those files in the jdk image under test.

Any comments ? Should we check for these files at just delete them at the beginning of   tools/jpackage/share/RuntimePackageTest.java  (or skip the test in case the files exist) ?
Otherwise we might  tolerate those 3 files .

Any suggestions ?

Thanks, Matthias

More information about the core-libs-dev mailing list