Skip to content

Commit d21e73d

Browse files
committed
8366941: Excessive logging in serviceability tests causes timeout
Reviewed-by: lmesnik, sspitsyn
1 parent b03b6f5 commit d21e73d

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

test/hotspot/jtreg/serviceability/logging/TestBasicLogOutput.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2025, 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
@@ -36,7 +36,7 @@
3636
public class TestBasicLogOutput {
3737

3838
public static void main(String[] args) throws Exception {
39-
ProcessBuilder pb = ProcessTools.createLimitedTestJavaProcessBuilder("-Xlog:all=trace", "-version");
39+
ProcessBuilder pb = ProcessTools.createLimitedTestJavaProcessBuilder("-Xlog:all=info", "-version");
4040
OutputAnalyzer output = new OutputAnalyzer(pb.start());
4141
output.shouldMatch("\\[logging *\\]"); // expected tag(s)
4242
output.shouldContain("Log configuration fully initialized."); // expected message

test/hotspot/jtreg/serviceability/logging/TestFullNames.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2019, 2025, 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
@@ -64,7 +64,7 @@ public static void main(String[] args) throws Exception {
6464
Asserts.assertFalse(file.exists());
6565
// Run with logging=trace on stdout so that we can verify the log configuration afterwards.
6666
ProcessBuilder pb = ProcessTools.createLimitedTestJavaProcessBuilder("-Xlog:logging=trace",
67-
"-Xlog:all=trace:" + logOutput,
67+
"-Xlog:all=info:" + logOutput,
6868
"-version");
6969
OutputAnalyzer output = new OutputAnalyzer(pb.start());
7070
output.shouldHaveExitValue(0);

test/hotspot/jtreg/serviceability/logging/TestQuotedLogOutputs.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2015, 2023, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2015, 2025, 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
@@ -74,7 +74,7 @@ public static void main(String[] args) throws Exception {
7474
for (String logOutput : validOutputs) {
7575
// Run with logging=trace on stdout so that we can verify the log configuration afterwards.
7676
ProcessBuilder pb = ProcessTools.createLimitedTestJavaProcessBuilder("-Xlog:logging=trace",
77-
"-Xlog:all=trace:" + logOutput,
77+
"-Xlog:all=info:" + logOutput,
7878
"-version");
7979
OutputAnalyzer output = new OutputAnalyzer(pb.start());
8080
output.shouldHaveExitValue(0);
@@ -99,7 +99,7 @@ public static void main(String[] args) throws Exception {
9999
};
100100
for (String logOutput : invalidOutputs) {
101101
ProcessBuilder pb = ProcessTools.createLimitedTestJavaProcessBuilder("-Xlog:logging=trace",
102-
"-Xlog:all=trace:" + logOutput,
102+
"-Xlog:all=info:" + logOutput,
103103
"-version");
104104
OutputAnalyzer output = new OutputAnalyzer(pb.start());
105105
output.shouldHaveExitValue(1);

0 commit comments

Comments
 (0)