Skip to content

Commit 0bfb53c

Browse files
author
Andrew Lu
committed
8323994: gtest runner repeats test name for every single gtest assertion
Backport-of: 1aae980c549741cf5fc5ca51f3c299285bafa49d
1 parent 7751996 commit 0bfb53c

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

test/hotspot/jtreg/gtest/GTestResultParser.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2019, 2024, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -57,7 +57,10 @@ public GTestResultParser(Path file) {
5757
testCase = xmlReader.getAttributeValue("", "name");
5858
break;
5959
case "failure":
60-
failedTests.add(testSuite + "::" + testCase);
60+
String failedStr = testSuite + "::" + testCase;
61+
if (!failedTests.contains(failedStr)) {
62+
failedTests.add(failedStr);
63+
}
6164
break;
6265
default:
6366
// ignore

0 commit comments

Comments
 (0)