8192864: defmeth tests can hide failures
Summary: Add a call to addFailureCount() to record previously hidden failures.
Reviewed-by: lfoltan, coleenp
--- a/test/hotspot/jtreg/vmTestbase/vm/runtime/defmeth/shared/DefMethTest.java Thu Oct 25 21:40:17 2018 -0700
+++ b/test/hotspot/jtreg/vmTestbase/vm/runtime/defmeth/shared/DefMethTest.java Fri Oct 26 08:23:52 2018 -0400
@@ -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 @@
e.printStackTrace();
}
}
-
+ addFailureCount(1);
if (failFast) {
throw new TestFailure(e.getCause());
}