Skip to content

Commit 48f6e90

Browse files
committed
Hide log timestamps in test to prevent false failures
1 parent 9e008ac commit 48f6e90

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

test/hotspot/jtreg/compiler/intrinsics/bmi/BMITestRunner.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2014, 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
@@ -122,6 +122,10 @@ public static OutputAnalyzer runTest(Class<? extends Expr> expr,
122122
List<String> vmOpts = new LinkedList<String>();
123123

124124
Collections.addAll(vmOpts, additionalVMOpts);
125+
// Hide timestamps from warnings (e.g. due to potential CDS
126+
// saved/runtime state mismatch), to avoid false positives when
127+
// comparing output across runs.
128+
vmOpts.add("-Xlog:all=warning:stdout:level,tags");
125129

126130
//setup mode-specific options
127131
switch (testVMMode) {

0 commit comments

Comments
 (0)