-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DCPERF-432 Add test showing JDK fails without fonts
TDD: red running `java FontTest` exits with non zero status code and error output ``` Exception in thread "main" java.lang.UnsatisfiedLinkError: /root/jdk-17.0.11/lib/libfontmanager.so: libfreetype.so.6: cannot open shared object file: No such file or directory ```
- Loading branch information
1 parent
480537f
commit 99420df
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
src/test/resources/com/atlassian/performance/tools/infrastructure/api/jvm/FontTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import java.awt.*; | ||
|
||
public class FontTest { | ||
public static void main(String[] args) { | ||
Font[] fonts = GraphicsEnvironment.getLocalGraphicsEnvironment().getAllFonts(); | ||
fonts[0].canDisplay('a'); | ||
} | ||
} |