mirror of
https://github.com/google/googletest.git
synced 2025-12-06 16:57:00 +08:00
Don’t link targets with main function against //:gtest_main
This works only because the linker discards the main function from the //:gtest_main library, otherwise the symbol would be duplicated.
This commit is contained in:
parent
6ec14dfd8c
commit
ae2b601bea
@ -125,7 +125,7 @@ cc_test(
|
||||
name = "googletest-listener-test",
|
||||
size = "small",
|
||||
srcs = ["googletest-listener-test.cc"],
|
||||
deps = ["//:gtest_main"],
|
||||
deps = ["//:gtest"],
|
||||
)
|
||||
|
||||
cc_test(
|
||||
@ -358,7 +358,7 @@ cc_test(
|
||||
name = "gtest_skip_in_environment_setup_test",
|
||||
size = "small",
|
||||
srcs = ["gtest_skip_in_environment_setup_test.cc"],
|
||||
deps = ["//:gtest_main"],
|
||||
deps = ["//:gtest"],
|
||||
)
|
||||
|
||||
py_test(
|
||||
@ -417,7 +417,7 @@ cc_binary(
|
||||
name = "googletest-catch-exceptions-no-ex-test_",
|
||||
testonly = 1,
|
||||
srcs = ["googletest-catch-exceptions-test_.cc"],
|
||||
deps = ["//:gtest_main"],
|
||||
deps = ["//:gtest"],
|
||||
)
|
||||
|
||||
cc_binary(
|
||||
@ -425,7 +425,7 @@ cc_binary(
|
||||
testonly = 1,
|
||||
srcs = ["googletest-catch-exceptions-test_.cc"],
|
||||
copts = ["-fexceptions"],
|
||||
deps = ["//:gtest_main"],
|
||||
deps = ["//:gtest"],
|
||||
)
|
||||
|
||||
py_test(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user