From 69f1ef1d0a1204d17e27a1034d3a518da04a3759 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roberto=20Casta=C3=B1eda=20Lozano?= Date: Thu, 12 Sep 2024 13:31:57 +0200 Subject: [PATCH] Hide log timestamps in test to prevent false failures --- .../jtreg/compiler/intrinsics/bmi/BMITestRunner.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/test/hotspot/jtreg/compiler/intrinsics/bmi/BMITestRunner.java b/test/hotspot/jtreg/compiler/intrinsics/bmi/BMITestRunner.java index 159e471e3fcef..b005d76728715 100644 --- a/test/hotspot/jtreg/compiler/intrinsics/bmi/BMITestRunner.java +++ b/test/hotspot/jtreg/compiler/intrinsics/bmi/BMITestRunner.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014, 2020, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2014, 2024, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -122,6 +122,10 @@ public static OutputAnalyzer runTest(Class expr, List vmOpts = new LinkedList(); Collections.addAll(vmOpts, additionalVMOpts); + // Hide timestamps from warnings (e.g. due to potential CDS + // saved/runtime state mismatch), to avoid false positives when + // comparing output across runs. + vmOpts.add("-Xlog:all=warning:stdout:level,tags"); //setup mode-specific options switch (testVMMode) {