mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-07-17 05:05:14 +03:00
- switch makedepends from -bootstrap to -loongarch variant having pkgver beginning with 0.0 will make openjdk22-bootstrap choose openjdk22 instead, as provider priorities are the same so make it explicit that we want to use a boot JDK with Server VM following this, the first openjdk -loongarch aport in the next LTS bootstrap chain will depend on -bootstrap, and all subsequent versions depend on -loongarch, which bootstraps in around 15 mins - carry over $_provide_java changes from openjdk22-loongarch when _provide_java=false, static-libs are not built to save space, and subpackages do not provide java-jdk/jre(-headless) my intention is to have _provide_java=true only for LTS JDKs so Java aports depending on java-jdk will be built against the latest LTS (which in actuality, may also not be what is intended, as that means it will not work with earlier LTS)
53 lines
1.9 KiB
Diff
53 lines
1.9 KiB
Diff
Author: Simon Frankenberger <simon-alpine@fraho.eu>
|
|
Subject: Disable failing tests
|
|
Upstream: Yes (https://bugs.openjdk.org/browse/JDK-8299245)
|
|
|
|
"Some gtests do not work well in non-debug build"
|
|
Disable failing tests as workaround
|
|
|
|
--- old/test/hotspot/gtest/runtime/test_os_linux.cpp
|
|
+++ new/test/hotspot/gtest/runtime/test_os_linux.cpp
|
|
@@ -439,6 +439,7 @@
|
|
|
|
#if !defined(__clang_major__) || (__clang_major__ >= 5) // DWARF does not support Clang versions older than 5.0.
|
|
// Test valid address of method ReportJNIFatalError in jniCheck.hpp. We should get "jniCheck.hpp" in the buffer and a valid line number.
|
|
+#if 0
|
|
TEST_VM(os_linux, decoder_get_source_info_valid) {
|
|
char buf[128] = "";
|
|
int line = -1;
|
|
@@ -447,6 +448,7 @@
|
|
ASSERT_TRUE(strcmp(buf, "jniCheck.hpp") == 0);
|
|
ASSERT_TRUE(line > 0);
|
|
}
|
|
+#endif
|
|
|
|
// Test invalid addresses. Should not cause harm and output buffer and line must contain "" and -1, respectively.
|
|
TEST_VM(os_linux, decoder_get_source_info_invalid) {
|
|
@@ -466,6 +468,7 @@
|
|
|
|
// Test with valid address but a too small buffer to store the entire filename. Should find generic <OVERFLOW> message
|
|
// and a valid line number.
|
|
+#if 0
|
|
TEST_VM(os_linux, decoder_get_source_info_valid_overflow) {
|
|
char buf[11] = "";
|
|
int line = -1;
|
|
@@ -474,9 +477,11 @@
|
|
ASSERT_TRUE(strcmp(buf, "<OVERFLOW>") == 0);
|
|
ASSERT_TRUE(line > 0);
|
|
}
|
|
+#endif
|
|
|
|
// Test with valid address but a too small buffer that can neither store the entire filename nor the generic <OVERFLOW>
|
|
// message. We should find "L" as filename and a valid line number.
|
|
+#if 0
|
|
TEST_VM(os_linux, decoder_get_source_info_valid_overflow_minimal) {
|
|
char buf[2] = "";
|
|
int line = -1;
|
|
@@ -485,6 +490,7 @@
|
|
ASSERT_TRUE(strcmp(buf, "L") == 0); // Overflow message does not fit, so we fall back to "L:line_number"
|
|
ASSERT_TRUE(line > 0); // Line should correctly be found and returned
|
|
}
|
|
+#endif
|
|
#endif // clang
|
|
|
|
#ifdef __GLIBC__
|