@@ -65,21 +65,16 @@ class CCustomEventListener : public ::testing::TestEventListener {
65
65
}
66
66
67
67
void OnTestPartResult (const ::testing::TestPartResult &test_part_result) override {
68
- printf (" \n " );
68
+ if (test_part_result.failed ()) {
69
+ printf (" \n " );
70
+ }
69
71
_listener->OnTestPartResult (test_part_result);
70
72
}
71
73
72
74
void OnTestEnd (const ::testing::TestInfo &test_case) override {
73
- if (test_case.result ()->Passed ())
74
- return ;
75
-
76
- std::stringstream ss;
77
- ss << test_case.test_case_name () << " ." << test_case.name ();
78
-
79
- if (test_case.result ()->Skipped ()) {
80
- testNamesSkipped.push_back (std::make_pair (ss.str (), currentSeed));
81
- std::cout << " [ SKIPPED ][ " << hardwarePrefix << " ][ " << currentSeed << " ] " << test_case.test_case_name () << " ." << test_case.name () << std::endl;
82
- } else {
75
+ if (test_case.result ()->Failed ()) {
76
+ std::stringstream ss;
77
+ ss << test_case.test_case_name () << " ." << test_case.name ();
83
78
testFailures.push_back (std::make_pair (ss.str (), currentSeed));
84
79
std::cout << " [ FAILED ][ " << hardwarePrefix << " ][ " << currentSeed << " ] " << test_case.test_case_name () << " ." << test_case.name () << std::endl;
85
80
}
@@ -134,12 +129,6 @@ class CCustomEventListener : public ::testing::TestEventListener {
134
129
testsDisabled,
135
130
timeElapsed);
136
131
137
- for (auto skipped : testNamesSkipped) {
138
- fprintf (
139
- stdout,
140
- " [ SKIPPED ][ %s ][ %u ] %s\n " , hardwarePrefix.c_str (), skipped.second , skipped.first .c_str ());
141
- }
142
-
143
132
for (auto failure : testFailures)
144
133
fprintf (
145
134
stdout,
@@ -154,7 +143,6 @@ class CCustomEventListener : public ::testing::TestEventListener {
154
143
155
144
::testing::TestEventListener *_listener;
156
145
std::vector<std::pair<std::string, int >> testFailures;
157
- std::vector<std::pair<std::string, int >> testNamesSkipped;
158
146
159
147
int currentSeed = -1 ;
160
148
std::string hardwarePrefix;
0 commit comments