RFR: 8292054: Test runtime/posixSig/TestPosixSig.java fails with 'Test failed, bad output.' [v3]
Thomas Stuefe
stuefe at openjdk.org
Wed Aug 17 17:45:28 UTC 2022
On Wed, 17 Aug 2022 17:11:28 GMT, Harold Seigel <hseigel at openjdk.org> wrote:
>> Please review this fix for JDK-8292054. The existing regression test for JDK-8285792, test/hotspot/jtreg/runtime/posixSig/TestPosixSig.java, intermittently fails because it depends on periodic calls to JVM function os::run_periodic_checks(). This fix replaces test TestPosixSig.java with a gtest that does its own explicit call to os::run_periodic_checks().
>>
>> The fix was tested by running the new test 150+ times on Linux, Mac OS, and Windows.
>
> Harold Seigel has updated the pull request incrementally with one additional commit since the last revision:
>
> test changes based on review comments
test/hotspot/gtest/runtime/test_signals.cpp line 51:
> 49: act.sa_flags = 0;
> 50: ASSERT_NE(sigaction(SIGFPE, &act, &old_SIGFPE_act), -1) << "Setting SIGFPE handler failed (errno)";
> 51: ASSERT_NE(sigaction(SIGILL, &act, &old_SIGILL_act), -1) << "Setting SIGILL handler failed (errno)";
Does that actually work? I would have thought that just prints the literal "errno". I meant something like this:
https://github.com/openjdk/jdk/blob/081c89316a2f35cad0a5dcc93e88707530e03d72/test/hotspot/gtest/logging/logTestUtils.inline.hpp#L56
-------------
PR: https://git.openjdk.org/jdk/pull/9882
More information about the hotspot-runtime-dev
mailing list