Skip to content

Commit f9224a5

Browse files
committed
TestThreadExecutor: inverted default quiet flag
1 parent 2a1c0b4 commit f9224a5

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

test/testthreadexecutor.cpp

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class TestThreadExecutor : public TestFixture {
4949
struct CheckOptions
5050
{
5151
CheckOptions() DINIT_NOEXCEPT = default;
52-
bool quiet = false;
52+
bool quiet = true;
5353
SHOWTIME_MODES showtime = SHOWTIME_MODES::SHOWTIME_NONE;
5454
const char* plistOutput = nullptr;
5555
std::vector<std::string> filesList;
@@ -122,7 +122,7 @@ class TestThreadExecutor : public TestFixture {
122122

123123
oss << " return 0;\n"
124124
<< "}\n";
125-
check(2, 3, 3, oss.str(), true);
125+
check(2, 3, 3, oss.str());
126126
}
127127

128128
// TODO: check the output
@@ -132,7 +132,7 @@ class TestThreadExecutor : public TestFixture {
132132
"{\n"
133133
" char *a = malloc(10);\n"
134134
" return 0;\n"
135-
"}", true);
135+
"}");
136136
}
137137

138138
// #11249 - reports TSAN errors - only applies to threads not processes though
@@ -144,7 +144,6 @@ class TestThreadExecutor : public TestFixture {
144144
" char *a = malloc(10);\n"
145145
" return 0;\n"
146146
"}", dinit(CheckOptions,
147-
$.quiet = true,
148147
$.showtime = SHOWTIME_MODES::SHOWTIME_SUMMARY));
149148
}
150149

@@ -158,7 +157,6 @@ class TestThreadExecutor : public TestFixture {
158157
" char *a = malloc(10);\n"
159158
" return 0;\n"
160159
"}", dinit(CheckOptions,
161-
$.quiet = true,
162160
$.plistOutput = plistOutput));
163161
}
164162

@@ -167,23 +165,23 @@ class TestThreadExecutor : public TestFixture {
167165
"int main()\n"
168166
"{\n"
169167
" return 0;\n"
170-
"}", true);
168+
"}");
171169
}
172170

173171
void no_errors_less_files() {
174172
check(2, 1, 0,
175173
"int main()\n"
176174
"{\n"
177175
" return 0;\n"
178-
"}", true);
176+
"}");
179177
}
180178

181179
void no_errors_equal_amount_files() {
182180
check(2, 2, 0,
183181
"int main()\n"
184182
"{\n"
185183
" return 0;\n"
186-
"}", true);
184+
"}");
187185
}
188186

189187
void one_error_less_files() {
@@ -192,7 +190,7 @@ class TestThreadExecutor : public TestFixture {
192190
"{\n"
193191
" {char *a = malloc(10);}\n"
194192
" return 0;\n"
195-
"}", true);
193+
"}");
196194
}
197195

198196
void one_error_several_files() {
@@ -201,7 +199,7 @@ class TestThreadExecutor : public TestFixture {
201199
"{\n"
202200
" {char *a = malloc(10);}\n"
203201
" return 0;\n"
204-
"}", true);
202+
"}");
205203
}
206204

207205
void markup() {

0 commit comments

Comments
 (0)