Commit 1bc27f7
committed
TestsPrinters.cpp: add FAIL() assertion to error tests.
Add FAIL() assertion to generated tests in no verbose mode.
The line with FAIL() assertion is unreachable in some tests but it gives
additional information to the user to make the tests easier to read.
I add a unit test to check that the code of generated tests (error suit) has
the line with FAIL() assertion. I decided not to use statuses from the tests
execution because the line with FAIL() assertion can be unreachable.
Refs: #4721 parent 2de5b52 commit 1bc27f7
File tree
3 files changed
+33
-10
lines changed- server
- src/printers
- test/framework
3 files changed
+33
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
241 | | - | |
242 | 241 | | |
243 | | - | |
244 | | - | |
245 | | - | |
246 | | - | |
| 242 | + | |
247 | 243 | | |
| 244 | + | |
248 | 245 | | |
249 | 246 | | |
250 | 247 | | |
| |||
667 | 664 | | |
668 | 665 | | |
669 | 666 | | |
| 667 | + | |
| 668 | + | |
670 | 669 | | |
671 | 670 | | |
672 | 671 | | |
| |||
763 | 762 | | |
764 | 763 | | |
765 | 764 | | |
| 765 | + | |
| 766 | + | |
| 767 | + | |
| 768 | + | |
| 769 | + | |
| 770 | + | |
| 771 | + | |
| 772 | + | |
| 773 | + | |
766 | 774 | | |
767 | 775 | | |
768 | 776 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
158 | 158 | | |
159 | 159 | | |
160 | 160 | | |
| 161 | + | |
| 162 | + | |
161 | 163 | | |
162 | 164 | | |
163 | 165 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | | - | |
10 | | - | |
11 | | - | |
| 9 | + | |
| 10 | + | |
12 | 11 | | |
13 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
1337 | 1338 | | |
1338 | 1339 | | |
1339 | 1340 | | |
| 1341 | + | |
| 1342 | + | |
| 1343 | + | |
| 1344 | + | |
| 1345 | + | |
| 1346 | + | |
| 1347 | + | |
| 1348 | + | |
| 1349 | + | |
| 1350 | + | |
| 1351 | + | |
| 1352 | + | |
1340 | 1353 | | |
1341 | 1354 | | |
1342 | 1355 | | |
| |||
0 commit comments