Skip to content

Commit

Permalink
8192864: defmeth tests can hide failures
Browse files Browse the repository at this point in the history
Add a call to addFailureCount() to record previously hidden failures.

Backport-of: 67d76fe
  • Loading branch information
Amos Shi authored and GoeLin committed Dec 4, 2023
1 parent ca2290b commit b9b01c9
Showing 1 changed file with 2 additions and 2 deletions.
@@ -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
Expand Down Expand Up @@ -332,7 +332,7 @@ public final boolean runTest() {
e.printStackTrace();
}
}

addFailureCount(1);
if (failFast) {
throw new TestFailure(e.getCause());
}
Expand Down

1 comment on commit b9b01c9

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.