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
ca102b1f
Commit
ca102b1f
authored
Aug 03, 2017
by
Gennadiy Civil
Committed by
GitHub
Aug 03, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1030 from vpfautz/master
Fixed some typos
parents
50f3bafb
a2451c74
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
11 additions
and
11 deletions
+11
-11
Makefile.am
googletest/Makefile.am
+1
-1
sample1.cc
googletest/samples/sample1.cc
+1
-1
upload.py
googletest/scripts/upload.py
+1
-1
gtest.cc
googletest/src/gtest.cc
+1
-1
gtest-port_test.cc
googletest/test/gtest-port_test.cc
+1
-1
gtest_test_utils.py
googletest/test/gtest_test_utils.py
+1
-1
gtest_unittest.cc
googletest/test/gtest_unittest.cc
+1
-1
gtest_xml_outfiles_test.py
googletest/test/gtest_xml_outfiles_test.py
+1
-1
gtest_xml_output_unittest.py
googletest/test/gtest_xml_output_unittest.py
+1
-1
versiongenerate.py
googletest/xcode/Scripts/versiongenerate.py
+2
-2
No files found.
googletest/Makefile.am
View file @
ca102b1f
...
@@ -216,7 +216,7 @@ pkginclude_internal_HEADERS = \
...
@@ -216,7 +216,7 @@ pkginclude_internal_HEADERS = \
lib_libgtest_main_la_SOURCES
=
src/gtest_main.cc
lib_libgtest_main_la_SOURCES
=
src/gtest_main.cc
lib_libgtest_main_la_LIBADD
=
lib/libgtest.la
lib_libgtest_main_la_LIBADD
=
lib/libgtest.la
# Bu
li
d rules for samples and tests. Automake's naming for some of
# Bu
il
d rules for samples and tests. Automake's naming for some of
# these variables isn't terribly obvious, so this is a brief
# these variables isn't terribly obvious, so this is a brief
# reference:
# reference:
#
#
...
...
googletest/samples/sample1.cc
View file @
ca102b1f
...
@@ -55,7 +55,7 @@ bool IsPrime(int n) {
...
@@ -55,7 +55,7 @@ bool IsPrime(int n) {
// Try to divide n by every odd number i, starting from 3
// Try to divide n by every odd number i, starting from 3
for
(
int
i
=
3
;
;
i
+=
2
)
{
for
(
int
i
=
3
;
;
i
+=
2
)
{
// We only have to try i up to the squre root of n
// We only have to try i up to the squ
a
re root of n
if
(
i
>
n
/
i
)
break
;
if
(
i
>
n
/
i
)
break
;
// Now, we have i <= n/i < n.
// Now, we have i <= n/i < n.
...
...
googletest/scripts/upload.py
View file @
ca102b1f
...
@@ -732,7 +732,7 @@ class SubversionVCS(VersionControlSystem):
...
@@ -732,7 +732,7 @@ class SubversionVCS(VersionControlSystem):
else
:
else
:
self
.
rev_start
=
self
.
rev_end
=
None
self
.
rev_start
=
self
.
rev_end
=
None
# Cache output from "svn list -r REVNO dirname".
# Cache output from "svn list -r REVNO dirname".
# Keys: dirname, Values: 2-tuple (ouput for start rev and end rev).
# Keys: dirname, Values: 2-tuple (ou
t
put for start rev and end rev).
self
.
svnls_cache
=
{}
self
.
svnls_cache
=
{}
# SVN base URL is required to fetch files deleted in an older revision.
# SVN base URL is required to fetch files deleted in an older revision.
# Result is cached to not guess it over and over again in GetBaseFile().
# Result is cached to not guess it over and over again in GetBaseFile().
...
...
googletest/src/gtest.cc
View file @
ca102b1f
...
@@ -1168,7 +1168,7 @@ class Hunk {
...
@@ -1168,7 +1168,7 @@ class Hunk {
// Print a unified diff header for one hunk.
// Print a unified diff header for one hunk.
// The format is
// The format is
// "@@ -<left_start>,<left_length> +<right_start>,<right_length> @@"
// "@@ -<left_start>,<left_length> +<right_start>,<right_length> @@"
// where the left/right parts are om
m
itted if unnecessary.
// where the left/right parts are omitted if unnecessary.
void
PrintHeader
(
std
::
ostream
*
ss
)
const
{
void
PrintHeader
(
std
::
ostream
*
ss
)
const
{
*
ss
<<
"@@ "
;
*
ss
<<
"@@ "
;
if
(
removes_
)
{
if
(
removes_
)
{
...
...
googletest/test/gtest-port_test.cc
View file @
ca102b1f
...
@@ -1209,7 +1209,7 @@ class DestructorTracker {
...
@@ -1209,7 +1209,7 @@ class DestructorTracker {
:
index_
(
GetNewIndex
())
{}
:
index_
(
GetNewIndex
())
{}
~
DestructorTracker
()
{
~
DestructorTracker
()
{
// We never access DestructorCall::List() concurrently, so we don't need
// We never access DestructorCall::List() concurrently, so we don't need
// to protect this acc
c
ess with a mutex.
// to protect this access with a mutex.
DestructorCall
::
List
()[
index_
]
->
ReportDestroyed
();
DestructorCall
::
List
()[
index_
]
->
ReportDestroyed
();
}
}
...
...
googletest/test/gtest_test_utils.py
View file @
ca102b1f
...
@@ -245,7 +245,7 @@ class Subprocess:
...
@@ -245,7 +245,7 @@ class Subprocess:
p
=
subprocess
.
Popen
(
command
,
p
=
subprocess
.
Popen
(
command
,
stdout
=
subprocess
.
PIPE
,
stderr
=
stderr
,
stdout
=
subprocess
.
PIPE
,
stderr
=
stderr
,
cwd
=
working_dir
,
universal_newlines
=
True
,
env
=
env
)
cwd
=
working_dir
,
universal_newlines
=
True
,
env
=
env
)
# communicate returns a tuple with the file obect for the child's
# communicate returns a tuple with the file ob
j
ect for the child's
# output.
# output.
self
.
output
=
p
.
communicate
()[
0
]
self
.
output
=
p
.
communicate
()[
0
]
self
.
_return_code
=
p
.
returncode
self
.
_return_code
=
p
.
returncode
...
...
googletest/test/gtest_unittest.cc
View file @
ca102b1f
...
@@ -3689,7 +3689,7 @@ TEST(AssertionTest, ASSERT_EQ) {
...
@@ -3689,7 +3689,7 @@ TEST(AssertionTest, ASSERT_EQ) {
TEST
(
AssertionTest
,
ASSERT_EQ_NULL
)
{
TEST
(
AssertionTest
,
ASSERT_EQ_NULL
)
{
// A success.
// A success.
const
char
*
p
=
NULL
;
const
char
*
p
=
NULL
;
// Some older GCC versions may issue a spurious waring in this or the next
// Some older GCC versions may issue a spurious war
n
ing in this or the next
// assertion statement. This warning should not be suppressed with
// assertion statement. This warning should not be suppressed with
// static_cast since the test verifies the ability to use bare NULL as the
// static_cast since the test verifies the ability to use bare NULL as the
// expected parameter to the macro.
// expected parameter to the macro.
...
...
googletest/test/gtest_xml_outfiles_test.py
View file @
ca102b1f
...
@@ -105,7 +105,7 @@ class GTestXMLOutFilesTest(gtest_xml_test_utils.GTestXMLTestCase):
...
@@ -105,7 +105,7 @@ class GTestXMLOutFilesTest(gtest_xml_test_utils.GTestXMLTestCase):
# TODO(wan@google.com): libtool causes the built test binary to be
# TODO(wan@google.com): libtool causes the built test binary to be
# named lt-gtest_xml_outfiles_test_ instead of
# named lt-gtest_xml_outfiles_test_ instead of
# gtest_xml_outfiles_test_. To account for this possibil
l
ity, we
# gtest_xml_outfiles_test_. To account for this possibility, we
# allow both names in the following code. We should remove this
# allow both names in the following code. We should remove this
# hack when Chandler Carruth's libtool replacement tool is ready.
# hack when Chandler Carruth's libtool replacement tool is ready.
output_file_name1
=
test_name
+
".xml"
output_file_name1
=
test_name
+
".xml"
...
...
googletest/test/gtest_xml_output_unittest.py
View file @
ca102b1f
...
@@ -237,7 +237,7 @@ class GTestXMLOutputUnitTest(gtest_xml_test_utils.GTestXMLTestCase):
...
@@ -237,7 +237,7 @@ class GTestXMLOutputUnitTest(gtest_xml_test_utils.GTestXMLTestCase):
'--shut_down_xml'
]
'--shut_down_xml'
]
p
=
gtest_test_utils
.
Subprocess
(
command
)
p
=
gtest_test_utils
.
Subprocess
(
command
)
if
p
.
terminated_by_signal
:
if
p
.
terminated_by_signal
:
# p.signal is avalable only if p.terminated_by_signal is True.
# p.signal is ava
i
lable only if p.terminated_by_signal is True.
self
.
assertFalse
(
self
.
assertFalse
(
p
.
terminated_by_signal
,
p
.
terminated_by_signal
,
'
%
s was killed by signal
%
d'
%
(
GTEST_PROGRAM_NAME
,
p
.
signal
))
'
%
s was killed by signal
%
d'
%
(
GTEST_PROGRAM_NAME
,
p
.
signal
))
...
...
googletest/xcode/Scripts/versiongenerate.py
View file @
ca102b1f
...
@@ -42,7 +42,7 @@
...
@@ -42,7 +42,7 @@
1. The AC_INIT macro will be contained within the first 1024 characters
1. The AC_INIT macro will be contained within the first 1024 characters
of configure.ac
of configure.ac
2. The version string will be 3 integers separated by periods and will be
2. The version string will be 3 integers separated by periods and will be
surrounded by squre brackets, "[" and "]" (e.g. [1.0.1]). The first
surrounded by squ
a
re brackets, "[" and "]" (e.g. [1.0.1]). The first
segment represents the major version, the second represents the minor
segment represents the major version, the second represents the minor
version and the third represents the fix version.
version and the third represents the fix version.
3. No ")" character exists between the opening "(" and closing ")" of
3. No ")" character exists between the opening "(" and closing ")" of
...
@@ -68,7 +68,7 @@ config_file.close()
...
@@ -68,7 +68,7 @@ config_file.close()
# Extract the version string from the AC_INIT macro
# Extract the version string from the AC_INIT macro
# The following init_expression means:
# The following init_expression means:
# Extract three integers separated by periods and surrounded by squre
# Extract three integers separated by periods and surrounded by squ
a
re
# brackets(e.g. "[1.0.1]") between "AC_INIT(" and ")". Do not be greedy
# brackets(e.g. "[1.0.1]") between "AC_INIT(" and ")". Do not be greedy
# (*? is the non-greedy flag) since that would pull in everything between
# (*? is the non-greedy flag) since that would pull in everything between
# the first "(" and the last ")" in the file.
# the first "(" and the last ")" in the file.
...
...
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