Skip to content

Commit cd483c8

Browse files
committed
TestThreadExecutor: inverted default quiet flag
1 parent 7a65374 commit cd483c8

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

test/testthreadexecutor.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class TestThreadExecutor : public TestFixture {
5050
* Execute check using n jobs for y files which are have
5151
* identical data, given within data.
5252
*/
53-
void check(unsigned int jobs, int files, int result, const std::string &data, bool quiet = false, SHOWTIME_MODES showtime = SHOWTIME_MODES::SHOWTIME_NONE, const char* const plistOutput = nullptr, const std::vector<std::string>& filesList = {}) {
53+
void check(unsigned int jobs, int files, int result, const std::string &data, bool quiet = true, SHOWTIME_MODES showtime = SHOWTIME_MODES::SHOWTIME_NONE, const char* const plistOutput = nullptr, const std::vector<std::string>& filesList = {}) {
5454
errout.str("");
5555
output.str("");
5656

@@ -113,7 +113,7 @@ class TestThreadExecutor : public TestFixture {
113113

114114
oss << " return 0;\n"
115115
<< "}\n";
116-
check(2, 3, 3, oss.str(), true);
116+
check(2, 3, 3, oss.str());
117117
}
118118

119119
// TODO: check the output
@@ -123,7 +123,7 @@ class TestThreadExecutor : public TestFixture {
123123
"{\n"
124124
" char *a = malloc(10);\n"
125125
" return 0;\n"
126-
"}", true);
126+
"}");
127127
}
128128

129129
// #11249 - reports TSAN errors - only applies to threads not processes though
@@ -154,23 +154,23 @@ class TestThreadExecutor : public TestFixture {
154154
"int main()\n"
155155
"{\n"
156156
" return 0;\n"
157-
"}", true);
157+
"}");
158158
}
159159

160160
void no_errors_less_files() {
161161
check(2, 1, 0,
162162
"int main()\n"
163163
"{\n"
164164
" return 0;\n"
165-
"}", true);
165+
"}");
166166
}
167167

168168
void no_errors_equal_amount_files() {
169169
check(2, 2, 0,
170170
"int main()\n"
171171
"{\n"
172172
" return 0;\n"
173-
"}", true);
173+
"}");
174174
}
175175

176176
void one_error_less_files() {
@@ -179,7 +179,7 @@ class TestThreadExecutor : public TestFixture {
179179
"{\n"
180180
" {char *a = malloc(10);}\n"
181181
" return 0;\n"
182-
"}", true);
182+
"}");
183183
}
184184

185185
void one_error_several_files() {
@@ -188,7 +188,7 @@ class TestThreadExecutor : public TestFixture {
188188
"{\n"
189189
" {char *a = malloc(10);}\n"
190190
" return 0;\n"
191-
"}", true);
191+
"}");
192192
}
193193

194194
void markup() {

0 commit comments

Comments
 (0)