From b9b01c91aefa6b10e0640cc6dfa8eea7fdaef47a Mon Sep 17 00:00:00 2001 From: Amos Shi Date: Mon, 4 Dec 2023 10:49:30 +0000 Subject: [PATCH] 8192864: defmeth tests can hide failures Add a call to addFailureCount() to record previously hidden failures. Backport-of: 67d76fe937264361b180f286ce8be16cadace3d2 --- .../vmTestbase/vm/runtime/defmeth/shared/DefMethTest.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/hotspot/jtreg/vmTestbase/vm/runtime/defmeth/shared/DefMethTest.java b/test/hotspot/jtreg/vmTestbase/vm/runtime/defmeth/shared/DefMethTest.java index 9acdffbe280..4f1a9d56add 100644 --- a/test/hotspot/jtreg/vmTestbase/vm/runtime/defmeth/shared/DefMethTest.java +++ b/test/hotspot/jtreg/vmTestbase/vm/runtime/defmeth/shared/DefMethTest.java @@ -1,5 +1,5 @@ /* -1;2c * Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2018, 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 @@ -332,7 +332,7 @@ public final boolean runTest() { e.printStackTrace(); } } - + addFailureCount(1); if (failFast) { throw new TestFailure(e.getCause()); }