JDK-8244973 : serviceability/attach/RemovingUnixDomainSocketTest.java fails "stderr was not empty"
  • Type: Bug
  • Component: core-svc
  • Sub-Component: tools
  • Affected Version: 15
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-05-14
  • Updated: 2022-12-12
  • Resolved: 2020-05-14
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 15 Other
11.0.13Fixed 15 b24Fixed openjdk8u342Fixed
Related Reports
Relates :  
Description
After JDK-8235211 the test

serviceability/attach/RemovingUnixDomainSocketTest.java 

fails in debug builds with "stderr was not empty"

The code that was pushed has:

+     out.stderrShouldBeEmptyIgnoreVMWarnings()
+                .stderrShouldBeEmpty();

which initially allows for warnings (as it should) but then will fail anyway.
Comments
A pull request was submitted for review. URL: https://git.openjdk.java.net/jdk8u-dev/pull/32 Date: 2022-04-05 00:55:22 +0000
05-04-2022

Fix Request (11u): Should get backported together with JDK-8235211. Review: https://github.com/openjdk/jdk11u-dev/pull/153
22-07-2021

URL: https://hg.openjdk.java.net/jdk/jdk/rev/3bf6ea56b020 User: amenkov Date: 2020-05-14 17:29:55 +0000
14-05-2020

Bad merge before JDK-8235211 push base: out.stderrShouldBeEmpty(); fix for JDK-8242009: - out.stderrShouldBeEmpty(); + out.stderrShouldBeEmptyIgnoreVMWarnings(); fix for JDK-8235211: - out.stderrShouldBeEmpty(); + out.shouldHaveExitValue(0) + .stderrShouldBeEmpty(); should be merged to out.shouldHaveExitValue(0) .stderrShouldBeEmptyIgnoreVMWarnings();
14-05-2020