more test changes
This commit is contained in:
parent
7001dff4fc
commit
421f527df3
@ -49,7 +49,7 @@ config_setting(
|
||||
values = {"define": "absl=1"},
|
||||
)
|
||||
|
||||
#on windows exclude gtest-tuple.h and gtest-tuple_test.cc
|
||||
#on windows exclude gtest-tuple.h and googletest-tuple-test.cc
|
||||
cc_test(
|
||||
name = "gtest_all_test",
|
||||
size = "small",
|
||||
@ -62,7 +62,7 @@ cc_test(
|
||||
],
|
||||
exclude = [
|
||||
"gtest-unittest-api_test.cc",
|
||||
"gtest-tuple_test.cc",
|
||||
"googletest-tuple-test.cc",
|
||||
"googletest/src/gtest-all.cc",
|
||||
"gtest_all_test.cc",
|
||||
"gtest-death-test_ex_test.cc",
|
||||
@ -85,7 +85,7 @@ cc_test(
|
||||
"//:windows": [],
|
||||
"//:windows_msvc": [],
|
||||
"//conditions:default": [
|
||||
"gtest-tuple_test.cc",
|
||||
"googletest-tuple-test.cc",
|
||||
],
|
||||
}),
|
||||
copts = select({
|
||||
|
@ -99,7 +99,7 @@ TEST(OutputFileHelpersTest, GetCurrentExecutableName) {
|
||||
const std::string exe_str = GetCurrentExecutableName().string();
|
||||
#if GTEST_OS_WINDOWS
|
||||
const bool success =
|
||||
_strcmpi("gtest-options_test", exe_str.c_str()) == 0 ||
|
||||
_strcmpi("googletest-options-test", exe_str.c_str()) == 0 ||
|
||||
_strcmpi("gtest-options-ex_test", exe_str.c_str()) == 0 ||
|
||||
_strcmpi("gtest_all_test", exe_str.c_str()) == 0 ||
|
||||
_strcmpi("gtest_dll_test", exe_str.c_str()) == 0;
|
||||
@ -109,7 +109,7 @@ TEST(OutputFileHelpersTest, GetCurrentExecutableName) {
|
||||
// TODO(wan@google.com): remove the hard-coded "lt-" prefix when
|
||||
// Chandler Carruth's libtool replacement is ready.
|
||||
const bool success =
|
||||
exe_str == "gtest-options_test" ||
|
||||
exe_str == "googletest-options-test" ||
|
||||
exe_str == "gtest_all_test" ||
|
||||
exe_str == "lt-gtest_all_test" ||
|
||||
exe_str == "gtest_dll_test";
|
@ -346,11 +346,11 @@ TEST(GtestCheckDeathTest, DiesWithCorrectOutputOnFailure) {
|
||||
const bool a_false_condition = false;
|
||||
const char regex[] =
|
||||
#ifdef _MSC_VER
|
||||
"gtest-port_test\\.cc\\(\\d+\\):"
|
||||
"googletest-port-test\\.cc\\(\\d+\\):"
|
||||
#elif GTEST_USES_POSIX_RE
|
||||
"gtest-port_test\\.cc:[0-9]+"
|
||||
"googletest-port-test\\.cc:[0-9]+"
|
||||
#else
|
||||
"gtest-port_test\\.cc:\\d+"
|
||||
"googletest-port-test\\.cc:\\d+"
|
||||
#endif // _MSC_VER
|
||||
".*a_false_condition.*Extra info.*";
|
||||
|
Loading…
Reference in New Issue
Block a user