Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
googletest
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
googletest
Commits
38dd7485
Commit
38dd7485
authored
Jul 14, 2015
by
kosak
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change GetDefaultFilter to allow for the injection of a custom filter.
parent
f025eba0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
0 deletions
+11
-0
gtest-port.h
include/gtest/internal/custom/gtest-port.h
+5
-0
gtest.cc
src/gtest.cc
+6
-0
No files found.
include/gtest/internal/custom/gtest-port.h
View file @
38dd7485
...
...
@@ -39,6 +39,11 @@
// GTEST_DEFINE_int32_(name, default_val, doc)
// GTEST_DEFINE_string_(name, default_val, doc)
//
// Test filtering:
// GTEST_TEST_FILTER_ENV_VAR_ - The name of an environment variable that
// will be used if --GTEST_FLAG(test_filter)
// is not provided.
//
// Logging:
// GTEST_LOG_(severity)
// GTEST_CHECK_(condition)
...
...
src/gtest.cc
View file @
38dd7485
...
...
@@ -189,6 +189,12 @@ bool g_help_flag = false;
}
// namespace internal
static
const
char
*
GetDefaultFilter
()
{
#ifdef GTEST_TEST_FILTER_ENV_VAR_
const
char
*
const
testbridge_test_only
=
getenv
(
GTEST_TEST_FILTER_ENV_VAR_
);
if
(
testbridge_test_only
!=
NULL
)
{
return
testbridge_test_only
;
}
#endif // GTEST_TEST_FILTER_ENV_VAR_
return
kUniversalFilter
;
}
...
...
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