RFR: JDK-8285987: executing shell scripts without #! fails on Alpine linux
Matthias Baesken
mbaesken at openjdk.java.net
Thu May 5 14:19:15 UTC 2022
On Thu, 5 May 2022 13:43:30 GMT, Alan Bateman <alanb at openjdk.org> wrote:
>> A couple a tests like java/lang/ProcessBuilder/Basic.java#id0.Basic_id0 and jdk/jshell/ExternalEditorTest.java.ExternalEditorTest try to start small shell scripts without #! at the first line of the script. This fails with error=8, Exec format error when running on Alpine 3.15 .
>> Looks like this is a known issue on musl / Alpine, see also
>> https://www.openwall.com/lists/musl/2018/03/09/2
>> and
>> https://github.com/scala-steward-org/scala-steward/issues/1374
>> (we see it on Alpine 3.15).
>
> test/lib/jdk/test/lib/Platform.java line 192:
>
>> 190: }
>> 191:
>> 192: public static boolean isMusl() {
>
> I think this will need test/lib/TestMutuallyExclusivePlatformPredicates.java to be updated too.
Hi Alan, thanks for the advice; do you think we can put it into the IGNORED group ?
https://github.com/openjdk/jdk/blob/master/test/lib-test/jdk/test/lib/TestMutuallyExclusivePlatformPredicates.java#L53
-------------
PR: https://git.openjdk.java.net/jdk/pull/8535
More information about the core-libs-dev
mailing list