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
1bd424d9
Commit
1bd424d9
authored
May 29, 2009
by
zhanyong.wan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adds missing copyright in test/gtest-test-part_test.cc (by Markus Heule). Minor…
Adds missing copyright in test/gtest-test-part_test.cc (by Markus Heule). Minor format adjustments.
parent
8de91f8f
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
43 additions
and
5 deletions
+43
-5
gtest-param-test_test.cc
test/gtest-param-test_test.cc
+1
-1
gtest-test-part_test.cc
test/gtest-test-part_test.cc
+30
-1
gtest_filter_unittest_.cc
test/gtest_filter_unittest_.cc
+1
-1
gtest_list_tests_unittest_.cc
test/gtest_list_tests_unittest_.cc
+1
-1
gtest_output_test.py
test/gtest_output_test.py
+6
-1
gtest_output_test_.cc
test/gtest_output_test_.cc
+4
-0
No files found.
test/gtest-param-test_test.cc
View file @
1bd424d9
...
@@ -787,6 +787,6 @@ int main(int argc, char **argv) {
...
@@ -787,6 +787,6 @@ int main(int argc, char **argv) {
GeneratorEvaluationTest
::
set_param_value
(
1
);
GeneratorEvaluationTest
::
set_param_value
(
1
);
#endif // GTEST_HAS_PARAM_TEST
#endif // GTEST_HAS_PARAM_TEST
testing
::
InitGoogleTest
(
&
argc
,
argv
);
::
testing
::
InitGoogleTest
(
&
argc
,
argv
);
return
RUN_ALL_TESTS
();
return
RUN_ALL_TESTS
();
}
}
test/gtest-test-part_test.cc
View file @
1bd424d9
// Copyright 2008 Google Inc. All Rights Reserved.
// Copyright 2008 Google Inc.
// All Rights Reserved.
//
// Redistribution and use in source and binary forms, with or without
// modification, are permitted provided that the following conditions are
// met:
//
// * Redistributions of source code must retain the above copyright
// notice, this list of conditions and the following disclaimer.
// * Redistributions in binary form must reproduce the above
// copyright notice, this list of conditions and the following disclaimer
// in the documentation and/or other materials provided with the
// distribution.
// * Neither the name of Google Inc. nor the names of its
// contributors may be used to endorse or promote products derived from
// this software without specific prior written permission.
//
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
// "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
// LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
// A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
// OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
// SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
// LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
// DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
// THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
// (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: mheule@google.com (Markus Heule)
// Author: mheule@google.com (Markus Heule)
//
#include <gtest/gtest-test-part.h>
#include <gtest/gtest-test-part.h>
...
...
test/gtest_filter_unittest_.cc
View file @
1bd424d9
...
@@ -140,7 +140,7 @@ INSTANTIATE_TEST_CASE_P(SeqQ, ParamTest, testing::Values(5, 6));
...
@@ -140,7 +140,7 @@ INSTANTIATE_TEST_CASE_P(SeqQ, ParamTest, testing::Values(5, 6));
}
// namespace
}
// namespace
int
main
(
int
argc
,
char
**
argv
)
{
int
main
(
int
argc
,
char
**
argv
)
{
testing
::
InitGoogleTest
(
&
argc
,
argv
);
::
testing
::
InitGoogleTest
(
&
argc
,
argv
);
return
RUN_ALL_TESTS
();
return
RUN_ALL_TESTS
();
}
}
test/gtest_list_tests_unittest_.cc
View file @
1bd424d9
...
@@ -79,7 +79,7 @@ TEST(FooDeathTest, Test1) {
...
@@ -79,7 +79,7 @@ TEST(FooDeathTest, Test1) {
}
// namespace
}
// namespace
int
main
(
int
argc
,
char
**
argv
)
{
int
main
(
int
argc
,
char
**
argv
)
{
testing
::
InitGoogleTest
(
&
argc
,
argv
);
::
testing
::
InitGoogleTest
(
&
argc
,
argv
);
return
RUN_ALL_TESTS
();
return
RUN_ALL_TESTS
();
}
}
test/gtest_output_test.py
View file @
1bd424d9
...
@@ -253,8 +253,13 @@ class GTestOutputTest(unittest.TestCase):
...
@@ -253,8 +253,13 @@ class GTestOutputTest(unittest.TestCase):
def
testOutput
(
self
):
def
testOutput
(
self
):
output
=
GetOutputOfAllCommands
()
output
=
GetOutputOfAllCommands
()
golden_file
=
open
(
GOLDEN_PATH
,
'rb'
)
golden_file
=
open
(
GOLDEN_PATH
,
'rb'
)
golden
=
golden_file
.
read
()
# A mis-configured source control system can cause \r appear in EOL
# sequences when we read the golden file irrespective of an operating
# system used. Therefore, we need to strip those \r's from newlines
# unconditionally.
golden
=
ToUnixLineEnding
(
golden_file
.
read
())
golden_file
.
close
()
golden_file
.
close
()
# We want the test to pass regardless of death tests being
# We want the test to pass regardless of death tests being
...
...
test/gtest_output_test_.cc
View file @
1bd424d9
...
@@ -974,6 +974,10 @@ int main(int argc, char **argv) {
...
@@ -974,6 +974,10 @@ int main(int argc, char **argv) {
// We just run the tests, knowing some of them are intended to fail.
// We just run the tests, knowing some of them are intended to fail.
// We will use a separate Python script to compare the output of
// We will use a separate Python script to compare the output of
// this program with the golden file.
// this program with the golden file.
// It's hard to test InitGoogleTest() directly, as it has many
// global side effects. The following line serves as a sanity test
// for it.
testing
::
InitGoogleTest
(
&
argc
,
argv
);
testing
::
InitGoogleTest
(
&
argc
,
argv
);
if
(
argc
>=
2
&&
if
(
argc
>=
2
&&
String
(
argv
[
1
])
==
"--gtest_internal_skip_environment_and_ad_hoc_tests"
)
String
(
argv
[
1
])
==
"--gtest_internal_skip_environment_and_ad_hoc_tests"
)
...
...
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