Skip running service config test on older libstdc++ versions and log to ERROR

pull/20513/head
Hope Casey-Allen 5 years ago
parent e70d8582b4
commit 3883c577f1
  1. 9
      test/core/client_channel/service_config_test.cc

@ -1011,9 +1011,12 @@ TEST_F(MessageSizeParserTest, InvalidMaxResponseMessageBytes) {
} // namespace grpc_core
int main(int argc, char** argv) {
// Regexes don't work in gcc4.8 and below, so just skip testing in those cases
#if defined(__GNUC__) && \
((__GNUC__ < 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__) <= 8))
// Regexes don't work in old libstdc++ versions, so just skip testing in those
// cases
#if defined(__GLIBCXX__) && (__GLIBCXX__ <= 20150623)
gpr_log(GPR_ERROR,
"Skipping service_config_test since std::regex is not supported on "
"this system.");
return 0;
#endif
grpc::testing::TestEnvironment env(argc, argv);

Loading…
Cancel
Save