> When building a JVM with -ffunction-sections in the C/C++ compile flags, the > gtest os_linux.decoder_get_source_info_valid_vm fails and delivers another > result > > > [ RUN ] os_linux.decoder_get_source_info_valid_vm > test/hotspot/gtest/runtime/test_os_linux.cpp:404: Failure > Expected equality of these values: > buf > Which is: "test_os_linux.cpp" > "jniCheck.hpp" > > [ FAILED ] os_linux.decoder_get_source_info_valid_vm (20 ms) > > > So for this compilation mode, it is probably better to avoid the check for > this specific header.
Matthias Baesken has updated the pull request incrementally with one additional commit since the last revision: Filter out the function/data sections flags from libjvm gtest build ------------- Changes: - all: https://git.openjdk.org/jdk/pull/30516/files - new: https://git.openjdk.org/jdk/pull/30516/files/e3acbabf..452345cd Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=30516&range=01 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=30516&range=00-01 Stats: 13 lines in 3 files changed: 6 ins; 2 del; 5 mod Patch: https://git.openjdk.org/jdk/pull/30516.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/30516/head:pull/30516 PR: https://git.openjdk.org/jdk/pull/30516
