Skip to content

Commit

Permalink
Hide log timestamps in test to prevent false failures
Browse files Browse the repository at this point in the history
  • Loading branch information
robcasloz authored and rkennke committed Sep 12, 2024
1 parent 9e008ac commit 69f1ef1
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -122,6 +122,10 @@ public static OutputAnalyzer runTest(Class<? extends Expr> expr,
List<String> vmOpts = new LinkedList<String>();

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) {
Expand Down

0 comments on commit 69f1ef1

Please sign in to comment.