Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
benchmark
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
benchmark
Commits
aaa25ac3
Commit
aaa25ac3
authored
Aug 28, 2016
by
Eric Fiselier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve diagnostic output for output tests.
parent
0ed44560
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
5 deletions
+9
-5
output_test_helper.cc
test/output_test_helper.cc
+9
-5
No files found.
test/output_test_helper.cc
View file @
aaa25ac3
...
@@ -70,13 +70,17 @@ void CheckCase(std::stringstream& remaining_output, TestCase const& TC,
...
@@ -70,13 +70,17 @@ void CheckCase(std::stringstream& remaining_output, TestCase const& TC,
on_first
=
false
;
on_first
=
false
;
}
}
for
(
auto
&
NC
:
not_checks
)
{
for
(
auto
&
NC
:
not_checks
)
{
CHECK
(
!
NC
.
regex
->
Match
(
line
))
<<
"Unexpected match for line
\"
"
CHECK
(
!
NC
.
regex
->
Match
(
line
))
<<
line
<<
"
\"
for MR_Not regex
\"
"
<<
"Unexpected match for line
\"
"
<<
line
<<
NC
.
regex_str
<<
"
\"
"
;
<<
"
\"
for MR_Not regex
\"
"
<<
NC
.
regex_str
<<
"
\"
"
<<
"
\n
actual regex string
\"
"
<<
TC
.
substituted_regex
<<
"
\"
"
<<
"
\n
started matching near: "
<<
first_line
;
}
}
if
(
TC
.
regex
->
Match
(
line
))
return
;
if
(
TC
.
regex
->
Match
(
line
))
return
;
CHECK
(
TC
.
match_rule
!=
MR_Next
)
<<
"Expected line
\"
"
<<
line
CHECK
(
TC
.
match_rule
!=
MR_Next
)
<<
"
\"
to match regex
\"
"
<<
TC
.
regex_str
<<
"
\"
"
;
<<
"Expected line
\"
"
<<
line
<<
"
\"
to match regex
\"
"
<<
TC
.
regex_str
<<
"
\"
"
<<
"
\n
actual regex string
\"
"
<<
TC
.
substituted_regex
<<
"
\"
"
<<
"
\n
started matching near: "
<<
first_line
;
}
}
CHECK
(
remaining_output
.
eof
()
==
false
)
CHECK
(
remaining_output
.
eof
()
==
false
)
<<
"End of output reached before match for regex
\"
"
<<
TC
.
regex_str
<<
"End of output reached before match for regex
\"
"
<<
TC
.
regex_str
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment