FabricMC / fabric-loader

Fabric's mostly-version-independent mod loader.
Apache License 2.0
632 stars 269 forks source link

fabric-loader-junit: Loading liblwjgl.so fails for Minecraft 1.18.2 #977

Open bluebear94 opened 2 months ago

bluebear94 commented 2 months ago

To reproduce:

  1. Download the minimal working example
  2. Run ./gradlew test

Expected: The test JlltTest.testJeMalloc passes.

Actual: That test fails with the following stack trace:

java.lang.UnsatisfiedLinkError: Failed to locate library: liblwjgl.so
    at org.lwjgl.system.Library.loadSystem(Library.java:174)
    at org.lwjgl.system.Library.loadSystem(Library.java:64)
    at org.lwjgl.system.Library.<clinit>(Library.java:52)
    at org.lwjgl.system.jemalloc.JEmalloc.<clinit>(JEmalloc.java:34)
    at xyz.flirora.jllt.JlltTest.testJeMalloc(JlltTest.java:8)
    at java.base/java.lang.reflect.Method.invoke(Method.java:580)
    at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)
    at java.base/java.util.ArrayList.forEach(ArrayList.java:1596)

For comparison, the 1.19.2 branch of the same repository behaves as expected.