Skip to content

Commit 613e8db

Browse files
committed
test: case 1038 reads the whole run of a suite as its two cases
1 parent bd9b389 commit 613e8db

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎tests/e2e/test/affected.cpp‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,8 @@ UTest g{"g", [] {
134134
expect(s::has_line(s::text(f1), R"(test_smoke \.\.\. ok \(.*1 case\))")) << "a declared case is not selected alone";
135135
auto f2 = grp.mcpp({"test", "--case", "g/t*"});
136136
expect(e2e::succeeded(f2));
137-
expect(s::has_line(s::text(f2), R"(test_smoke \.\.\. ok \(.*3 cases\))")) << "a pattern below the listed case does not run it whole";
137+
// Run whole: both of its cases (the suite is told by them, as the summary counts it).
138+
expect(s::has_line(s::text(f2), R"(test_smoke \.\.\. ok \(.*2 cases\))")) << "a pattern below the listed case does not run it whole";
138139
};
139140

140141
"1120 a header affects the tests built from the units that read it"_test[s::gcc] = [] {

0 commit comments

Comments
 (0)