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
1db4a426
Unverified
Commit
1db4a426
authored
Aug 29, 2018
by
Gennadiy Civil
Committed by
GitHub
Aug 29, 2018
Browse files
Merge branch 'master' into 9A681768AABE08D1EFA5CA77528236A4
parents
f1e529a8
3dbba3b0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
3 deletions
+3
-3
ci/env-linux.sh
ci/env-linux.sh
+1
-1
ci/env-osx.sh
ci/env-osx.sh
+1
-1
googletest/docs/primer.md
googletest/docs/primer.md
+1
-1
No files found.
ci/env-linux.sh
View file @
1db4a426
...
@@ -37,5 +37,5 @@
...
@@ -37,5 +37,5 @@
if
[
"
${
TRAVIS_OS_NAME
}
"
=
"linux"
]
;
then
if
[
"
${
TRAVIS_OS_NAME
}
"
=
"linux"
]
;
then
if
[
"
$CXX
"
=
"g++"
]
;
then
export
CXX
=
"g++-4.9"
CC
=
"gcc-4.9"
;
fi
if
[
"
$CXX
"
=
"g++"
]
;
then
export
CXX
=
"g++-4.9"
CC
=
"gcc-4.9"
;
fi
if
[
"
$CXX
"
=
"clang++"
]
;
then
export
CXX
=
"clang++-3.
7
"
CC
=
"clang-3.
7
"
;
fi
if
[
"
$CXX
"
=
"clang++"
]
;
then
export
CXX
=
"clang++-3.
9
"
CC
=
"clang-3.
9
"
;
fi
fi
fi
ci/env-osx.sh
View file @
1db4a426
...
@@ -36,5 +36,5 @@
...
@@ -36,5 +36,5 @@
# TODO() - we can check if this is being sourced using $BASH_VERSION and $BASH_SOURCE[0] != ${0}.
# TODO() - we can check if this is being sourced using $BASH_VERSION and $BASH_SOURCE[0] != ${0}.
if
[
"
${
TRAVIS_OS_NAME
}
"
=
"linux"
]
;
then
if
[
"
${
TRAVIS_OS_NAME
}
"
=
"linux"
]
;
then
if
[
"
$CXX
"
=
"clang++"
]
;
then
export
CXX
=
"clang++-3.
7
"
CC
=
"clang-3.
7
"
;
fi
if
[
"
$CXX
"
=
"clang++"
]
;
then
export
CXX
=
"clang++-3.
9
"
CC
=
"clang-3.
9
"
;
fi
fi
fi
googletest/docs/primer.md
View file @
1db4a426
...
@@ -317,7 +317,7 @@ To create a fixture:
...
@@ -317,7 +317,7 @@ To create a fixture:
1.
If necessary, write a destructor or
`TearDown()`
function to release any
1.
If necessary, write a destructor or
`TearDown()`
function to release any
resources you allocated in
`SetUp()`
. To learn when you should use the
resources you allocated in
`SetUp()`
. To learn when you should use the
constructor/destructor and when you should use
`SetUp()/TearDown()`
, read
constructor/destructor and when you should use
`SetUp()/TearDown()`
, read
this
[
FAQ
](
faq.md#should-i-use-the-constructordestructor-of-the-test-fixture-or-
the-
set
-
uptear
-
down
-function
)
entry.
this
[
FAQ
](
faq.md#should-i-use-the-constructordestructor-of-the-test-fixture-or-setupteardown
)
entry.
1.
If needed, define subroutines for your tests to share.
1.
If needed, define subroutines for your tests to share.
When using a fixture, use
`TEST_F()`
instead of
`TEST()`
as it allows you to
When using a fixture, use
`TEST_F()`
instead of
`TEST()`
as it allows you to
...
...
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