RFR: 8373105: Test tools/jpackage/share/AsyncTest.java failed: problem running hdiutil

Alexander Matveev almatvee at openjdk.org
Fri Dec 19 01:03:54 UTC 2025


On Thu, 18 Dec 2025 23:05:35 GMT, Alexander Matveev <almatvee at openjdk.org> wrote:

> - I was not able to reproduce this issue.
> - Based on log we calling same detach command simultaneously:
> 
> [08:49:10.288] TRACE: exec: Execute [/usr/bin/hdiutil detach -force -verbose /Volumes/Foo](5); discard out+err...
> [08:49:10.274] TRACE: exec: Execute [/usr/bin/hdiutil detach -force -verbose /Volumes/Foo](5); discard out+err...
> 
> - I think `hdiutil` does not handle attaching/detaching DMG with same name asynchronously multiple times well enough.
> - Fixed by mounting DMG into random location.
> - Added `-nobrowse`, so DMG will not be added to Finder. We do not need DMG to be shown in Finder when attached during test.

We do not need to fix jpackage. It is already uses random mount root. Example from trace:

/usr/bin/hdiutil attach /var/folders/dr/65dj5x3j0296mqtsn9z27xc80000gn/T/jdk.jpackage8052723072987214442/dmg-workdir/proto.dmg -verbose -mountroot /var/folders/dr/65dj5x3j0296mqtsn9z27xc80000gn/T/jdk.jpackage8052723072987214442/dmg-workdir

-------------

PR Comment: https://git.openjdk.org/jdk/pull/28912#issuecomment-3672976643


More information about the core-libs-dev mailing list