Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
83bb7410
Commit
83bb7410
authored
Jul 10, 2018
by
Dominik Charousset
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix build on GCC 4.8
parent
9d6f9d16
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
libcaf_test/caf/test/unit_test_impl.hpp
libcaf_test/caf/test/unit_test_impl.hpp
+6
-2
No files found.
libcaf_test/caf/test/unit_test_impl.hpp
View file @
83bb7410
...
@@ -296,6 +296,8 @@ bool engine::run(bool colorize,
...
@@ -296,6 +296,8 @@ bool engine::run(bool colorize,
|| (defined(__clang__) && !defined(_LIBCPP_VERSION))
|| (defined(__clang__) && !defined(_LIBCPP_VERSION))
// regex implementation is broken prior to 4.9
// regex implementation is broken prior to 4.9
using
strvec
=
std
::
vector
<
std
::
string
>
;
using
strvec
=
std
::
vector
<
std
::
string
>
;
using
whitelist_type
=
strvec
;
using
blacklist_type
=
strvec
;
auto
from_psv
=
[](
const
std
::
string
&
psv
)
->
strvec
{
auto
from_psv
=
[](
const
std
::
string
&
psv
)
->
strvec
{
// psv == pipe-separated-values
// psv == pipe-separated-values
strvec
result
;
strvec
result
;
...
@@ -318,6 +320,8 @@ bool engine::run(bool colorize,
...
@@ -318,6 +320,8 @@ bool engine::run(bool colorize,
||
std
::
binary_search
(
whitelist
.
begin
(),
whitelist
.
end
(),
x
));
||
std
::
binary_search
(
whitelist
.
begin
(),
whitelist
.
end
(),
x
));
};
};
# else
# else
using
whitelist_type
=
std
::
regex
;
using
blacklist_type
=
std
::
regex
;
std
::
regex
suites
{
suites_str
};
std
::
regex
suites
{
suites_str
};
std
::
regex
tests
{
tests_str
};
std
::
regex
tests
{
tests_str
};
std
::
regex
not_suites
;
std
::
regex
not_suites
;
...
@@ -335,8 +339,8 @@ bool engine::run(bool colorize,
...
@@ -335,8 +339,8 @@ bool engine::run(bool colorize,
&&
!
std
::
regex_search
(
x
,
blacklist
);
&&
!
std
::
regex_search
(
x
,
blacklist
);
};
};
# endif
# endif
auto
test_enabled
=
[
&
](
const
std
::
regex
&
whitelist
,
auto
test_enabled
=
[
&
](
const
whitelist_type
&
whitelist
,
const
std
::
regex
&
blacklist
,
const
blacklist_type
&
blacklist
,
const
test
&
x
)
{
const
test
&
x
)
{
// Disabled tests run iff explicitly requested by the user, i.e.,
// Disabled tests run iff explicitly requested by the user, i.e.,
// tests_str is not the ".*" catch-all default.
// tests_str is not the ".*" catch-all default.
...
...
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