Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
4371b996
Unverified
Commit
4371b996
authored
Jan 06, 2018
by
Gennadiy Civil
Committed by
GitHub
Jan 06, 2018
Browse files
Merge pull request #1385 from gennadiycivil/master
code cleanup in preparation for merges, cl 180857299
parents
5b26b0fc
fab06101
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
9 additions
and
16 deletions
+9
-16
googletest/test/gtest-death-test_test.cc
googletest/test/gtest-death-test_test.cc
+2
-2
googletest/test/gtest-filepath_test.cc
googletest/test/gtest-filepath_test.cc
+2
-4
googletest/test/gtest-options_test.cc
googletest/test/gtest-options_test.cc
+0
-1
googletest/test/gtest-param-test2_test.cc
googletest/test/gtest-param-test2_test.cc
+1
-0
googletest/test/gtest-port_test.cc
googletest/test/gtest-port_test.cc
+2
-2
googletest/test/gtest_break_on_failure_unittest_.cc
googletest/test/gtest_break_on_failure_unittest_.cc
+1
-2
googletest/test/gtest_repeat_test.cc
googletest/test/gtest_repeat_test.cc
+1
-0
googletest/test/gtest_stress_test.cc
googletest/test/gtest_stress_test.cc
+0
-1
googletest/test/gtest_xml_outfile1_test_.cc
googletest/test/gtest_xml_outfile1_test_.cc
+0
-1
googletest/test/gtest_xml_outfile2_test_.cc
googletest/test/gtest_xml_outfile2_test_.cc
+0
-1
googletest/test/gtest_xml_output_unittest_.cc
googletest/test/gtest_xml_output_unittest_.cc
+0
-2
No files found.
googletest/test/gtest-death-test_test.cc
View file @
4371b996
...
...
@@ -305,14 +305,14 @@ void DieWithEmbeddedNul() {
}
# if GTEST_USES_PCRE
// Tests that EXPECT_DEATH and ASSERT_DEATH work when the error
// message has a NUL character in it.
TEST_F
(
TestForDeathTest
,
EmbeddedNulInMessage
)
{
// TODO(wan@google.com): <regex.h> doesn't support matching strings
// with embedded NUL characters - find a way to workaround it.
EXPECT_DEATH
(
DieWithEmbeddedNul
(),
"my null world"
);
ASSERT_DEATH
(
DieWithEmbeddedNul
(),
"my null world"
);
}
# endif // GTEST_USES_PCRE
// Tests that death test macros expand to code which interacts well with switch
...
...
googletest/test/gtest-filepath_test.cc
View file @
4371b996
...
...
@@ -27,16 +27,14 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
// Authors: keith.ray@gmail.com (Keith Ray)
//
// Google Test filepath utilities
//
// This file tests classes and functions used internally by
// Google Test. They are subject to change without notice.
//
// This file is #included from gtest_unittest.cc, to avoid changing
// build or make-files for some existing Google Test clients. Do not
// #include this file anywhere else!
// This file is #included from gtest-internal.h.
// Do not #include this file anywhere else!
#include "gtest/internal/gtest-filepath.h"
#include "gtest/gtest.h"
...
...
googletest/test/gtest-options_test.cc
View file @
4371b996
...
...
@@ -27,7 +27,6 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
// Authors: keith.ray@gmail.com (Keith Ray)
//
// Google Test UnitTestOptions tests
//
...
...
googletest/test/gtest-param-test2_test.cc
View file @
4371b996
...
...
@@ -59,3 +59,4 @@ INSTANTIATE_TEST_CASE_P(MultiplesOf33,
INSTANTIATE_TEST_CASE_P
(
Sequence2
,
InstantiationInMultipleTranslaionUnitsTest
,
Values
(
42
*
3
,
42
*
4
,
42
*
5
));
googletest/test/gtest-port_test.cc
View file @
4371b996
...
...
@@ -67,8 +67,8 @@ TEST(IsXDigitTest, WorksForNarrowAscii) {
}
TEST
(
IsXDigitTest
,
ReturnsFalseForNarrowNonAscii
)
{
EXPECT_FALSE
(
IsXDigit
(
'\
x80
'
));
EXPECT_FALSE
(
IsXDigit
(
static_cast
<
char
>
(
'0'
|
'\
x80
'
)));
EXPECT_FALSE
(
IsXDigit
(
static_cast
<
char
>
(
0
x80
)
));
EXPECT_FALSE
(
IsXDigit
(
static_cast
<
char
>
(
'0'
|
0
x80
)));
}
TEST
(
IsXDigitTest
,
WorksForWideAscii
)
{
...
...
googletest/test/gtest_break_on_failure_unittest_.cc
View file @
4371b996
...
...
@@ -80,8 +80,7 @@ int main(int argc, char **argv) {
SetUnhandledExceptionFilter
(
ExitWithExceptionCode
);
# endif
#endif
#endif // GTEST_OS_WINDOWS
testing
::
InitGoogleTest
(
&
argc
,
argv
);
return
RUN_ALL_TESTS
();
...
...
googletest/test/gtest_repeat_test.cc
View file @
4371b996
...
...
@@ -210,6 +210,7 @@ void TestRepeatWithFilterForFailedTests(int repeat) {
int
main
(
int
argc
,
char
**
argv
)
{
testing
::
InitGoogleTest
(
&
argc
,
argv
);
testing
::
AddGlobalTestEnvironment
(
new
MyEnvironment
);
TestRepeatUnspecified
();
...
...
googletest/test/gtest_stress_test.cc
View file @
4371b996
...
...
@@ -34,7 +34,6 @@
#include "gtest/gtest.h"
#include <iostream>
#include <vector>
#include "src/gtest-internal-inl.h"
...
...
googletest/test/gtest_xml_outfile1_test_.cc
View file @
4371b996
...
...
@@ -27,7 +27,6 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
// Author: keith.ray@gmail.com (Keith Ray)
//
// gtest_xml_outfile1_test_ writes some xml via TestProperty used by
// gtest_xml_outfiles_test.py
...
...
googletest/test/gtest_xml_outfile2_test_.cc
View file @
4371b996
...
...
@@ -27,7 +27,6 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
//
// Author: keith.ray@gmail.com (Keith Ray)
//
// gtest_xml_outfile2_test_ writes some xml via TestProperty used by
// gtest_xml_outfiles_test.py
...
...
googletest/test/gtest_xml_output_unittest_.cc
View file @
4371b996
...
...
@@ -27,8 +27,6 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
// Author: eefacm@gmail.com (Sean Mcafee)
// Unit test for Google Test XML output.
//
// A user can specify XML output in a Google Test program to run via
...
...
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