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
cdbcaaf2
Commit
cdbcaaf2
authored
Apr 29, 2017
by
Joao Paulo Magalhaes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix g++-4.8 compile errors.
parent
ef6b4fb8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
output_test_helper.cc
test/output_test_helper.cc
+5
-3
No files found.
test/output_test_helper.cc
View file @
cdbcaaf2
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
#include <map>
#include <map>
#include <memory>
#include <memory>
#include <sstream>
#include <sstream>
#include <cstring>
#include "../src/check.h" // NOTE: check.h is for internal use only!
#include "../src/check.h" // NOTE: check.h is for internal use only!
#include "../src/re.h" // NOTE: re.h is for internal use only
#include "../src/re.h" // NOTE: re.h is for internal use only
...
@@ -163,8 +164,8 @@ class ResultsChecker {
...
@@ -163,8 +164,8 @@ class ResultsChecker {
public
:
public
:
struct
PatternAndFn
:
public
TestCase
{
// reusing TestCase for its regexes
struct
PatternAndFn
:
public
TestCase
{
// reusing TestCase for its regexes
PatternAndFn
(
const
std
::
string
&
r
ege
x
,
ResultsCheckFn
fn_
)
PatternAndFn
(
const
std
::
string
&
rx
,
ResultsCheckFn
fn_
)
:
TestCase
(
r
ege
x
),
fn
(
fn_
)
{}
:
TestCase
(
rx
),
fn
(
fn_
)
{}
ResultsCheckFn
fn
;
ResultsCheckFn
fn
;
};
};
...
@@ -414,6 +415,7 @@ void RunOutputTests(int argc, char* argv[]) {
...
@@ -414,6 +415,7 @@ void RunOutputTests(int argc, char* argv[]) {
// now that we know the output is as expected, we can dispatch
// now that we know the output is as expected, we can dispatch
// the checks to subscribees.
// the checks to subscribees.
auto
&
csv
=
TestCases
[
2
];
auto
&
csv
=
TestCases
[
2
];
CHECK
(
strcmp
(
csv
.
name
,
"CSVReporter"
)
==
0
);
// would use == but gcc spits a warning
// would use == but gcc spits a warning
CHECK
(
std
::
strcmp
(
csv
.
name
,
"CSVReporter"
)
==
0
);
internal
::
GetResultsChecker
().
CheckResults
(
csv
.
out_stream
);
internal
::
GetResultsChecker
().
CheckResults
(
csv
.
out_stream
);
}
}
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