mirror of
https://github.com/JetBrains/JetBrainsRuntime.git
synced 2025-12-06 09:29:38 +01:00
8323994: gtest runner repeats test name for every single gtest assertion
Backport-of: 1aae980c54
This commit is contained in:
committed by
Vitaly Provodin
parent
79135863b1
commit
23b61da1f9
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2019, 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
|
||||
@@ -57,7 +57,10 @@ public class GTestResultParser {
|
||||
testCase = xmlReader.getAttributeValue("", "name");
|
||||
break;
|
||||
case "failure":
|
||||
failedTests.add(testSuite + "::" + testCase);
|
||||
String failedStr = testSuite + "::" + testCase;
|
||||
if (!failedTests.contains(failedStr)) {
|
||||
failedTests.add(failedStr);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
// ignore
|
||||
|
||||
Reference in New Issue
Block a user