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