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
96077bc9
Commit
96077bc9
authored
Aug 01, 2018
by
Gennadiy Civil
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more tests changes
parent
b888e23f
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
69 additions
and
6 deletions
+69
-6
BUILD.bazel
googletest/test/BUILD.bazel
+25
-5
googletest-death-test-test.cc
googletest/test/googletest-death-test-test.cc
+0
-0
googletest-uninitialized-test.py
googletest/test/googletest-uninitialized-test.py
+1
-1
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 = "g
test_uninitialized_
test_",
name = "g
oogletest-uninitialized-
test_",
testonly = 1,
srcs = ["g
test_uninitialized_
test_.cc"],
srcs = ["g
oogletest-uninitialized-
test_.cc"],
deps = ["//:gtest"],
)
py_test(
name = "g
test_uninitialized_
test",
name = "g
oogletest-uninitialized-
test",
size = "medium",
srcs = ["g
test_uninitialized_
test.py"],
data = ["
:gtest_uninitialized_
test_"],
srcs = ["g
oogletest-uninitialized-
test.py"],
data = ["
googletest-uninitialized-
test_"],
deps = [":gtest_test_utils"],
)
...
...
googletest/test/g
test-death-test_
test.cc
→
googletest/test/g
oogletest-death-test-
test.cc
View file @
96077bc9
File moved
googletest/test/g
test_uninitialized_
test.py
→
googletest/test/g
oogletest-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
(
'g
test_uninitialized_
test_'
)
COMMAND
=
gtest_test_utils
.
GetTestExecutablePath
(
'g
oogletest-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