Skip to content

Commit 2bbdc8c

Browse files
committedJul 2, 2024
8325862: set -XX:+ErrorFileToStderr when executing java in containers for some container related jtreg tests
Backport-of: 9f4ec21f4793d4c5fc10f93a32140c26ec0eec00
1 parent 3c9e960 commit 2bbdc8c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎test/lib/jdk/test/lib/containers/docker/DockerRunOptions.java

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2017, 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2017, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -60,6 +60,9 @@ public DockerRunOptions(String imageNameAndTag, String javaCmd,
6060
this.command = javaCmd;
6161
this.classToRun = classToRun;
6262
this.addJavaOpts(javaOpts);
63+
// always print hserr to stderr in the docker tests to avoid
64+
// trouble accessing it after a crash in the container
65+
this.addJavaOpts("-XX:+ErrorFileToStderr");
6366
}
6467

6568
public DockerRunOptions addDockerOpts(String... opts) {

1 commit comments

Comments
 (1)

openjdk-notifier[bot] commented on Jul 2, 2024

@openjdk-notifier[bot]
Please sign in to comment.