Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
yangql
googletest
Commits
96077bc9
Commit
96077bc9
authored
Aug 01, 2018
by
Gennadiy Civil
Browse files
more tests changes
parent
b888e23f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
69 additions
and
6 deletions
+69
-6
googletest/test/BUILD.bazel
googletest/test/BUILD.bazel
+25
-5
googletest/test/googletest-death-test-test.cc
googletest/test/googletest-death-test-test.cc
+0
-0
googletest/test/googletest-uninitialized-test.py
googletest/test/googletest-uninitialized-test.py
+1
-1
googletest/test/googletest-uninitialized-test_.cc
googletest/test/googletest-uninitialized-test_.cc
+43
-0
No files found.
googletest/test/BUILD.bazel
View file @
96077bc9
...
...
@@ -56,6 +56,7 @@ cc_test(
srcs
=
glob
(
include
=
[
"gtest-*.cc"
,
"googletest-*.cc"
,
"*.h"
,
"googletest/include/gtest/**/*.h"
,
],
...
...
@@ -68,6 +69,17 @@ cc_test(
"gtest-listener_test.cc"
,
"gtest-unittest-api_test.cc"
,
"gtest-param-test_test.cc"
,
"googletest-catch-exceptions-test_.cc"
,
"googletest-color-test_.cc"
,
"googletest-env-var-test_.cc"
,
"googletest-filter-unittest_.cc"
,
"googletest-break-on-failure-unittest_.cc"
,
"googletest-listener-test.cc"
,
"googletest-output-test_.cc"
,
"googletest-list-tests-unittest_.cc"
,
"googletest-shuffle-test_.cc"
,
"googletest-uninitialized-test_.cc"
,
],
)
+
select
({
"//:windows"
:
[],
...
...
@@ -98,6 +110,14 @@ cc_test(
)
# Tests death tests.
cc_test
(
name
=
"googletest-death-test-test"
,
size
=
"medium"
,
srcs
=
[
"googletest-death-test-test.cc"
],
deps
=
[
"//:gtest_main"
],
)
cc_test
(
name
=
"gtest_test_macro_stack_footprint_test"
,
size
=
"small"
,
...
...
@@ -399,17 +419,17 @@ py_test(
)
cc_binary
(
name
=
"gtest
_
uninitialized
_
test_"
,
name
=
"g
oogle
test
-
uninitialized
-
test_"
,
testonly
=
1
,
srcs
=
[
"gtest
_
uninitialized
_
test_.cc"
],
srcs
=
[
"g
oogle
test
-
uninitialized
-
test_.cc"
],
deps
=
[
"//:gtest"
],
)
py_test
(
name
=
"gtest
_
uninitialized
_
test"
,
name
=
"g
oogle
test
-
uninitialized
-
test"
,
size
=
"medium"
,
srcs
=
[
"gtest
_
uninitialized
_
test.py"
],
data
=
[
"
:
gtest
_
uninitialized
_
test_"
],
srcs
=
[
"g
oogle
test
-
uninitialized
-
test.py"
],
data
=
[
"g
oogle
test
-
uninitialized
-
test_"
],
deps
=
[
":gtest_test_utils"
],
)
...
...
googletest/test/gtest-death-test
_
test.cc
→
googletest/test/g
oogle
test-death-test
-
test.cc
View file @
96077bc9
File moved
googletest/test/gtest
_
uninitialized
_
test.py
→
googletest/test/g
oogle
test
-
uninitialized
-
test.py
View file @
96077bc9
...
...
@@ -35,7 +35,7 @@ __author__ = 'wan@google.com (Zhanyong Wan)'
import
gtest_test_utils
COMMAND
=
gtest_test_utils
.
GetTestExecutablePath
(
'gtest
_
uninitialized
_
test_'
)
COMMAND
=
gtest_test_utils
.
GetTestExecutablePath
(
'g
oogle
test
-
uninitialized
-
test_'
)
def
Assert
(
condition
):
...
...
googletest/test/googletest-uninitialized-test_.cc
0 → 100644
View file @
96077bc9
// 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: wan@google.com (Zhanyong Wan)
#include "gtest/gtest.h"
TEST
(
DummyTest
,
Dummy
)
{
// This test doesn't verify anything. We just need it to create a
// realistic stage for testing the behavior of Google Test when
// RUN_ALL_TESTS() is called without
// testing::InitGoogleTest() being called first.
}
int
main
()
{
return
RUN_ALL_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