speedup ssl_transport_security_test also on Mac

pull/22507/head
Jan Tattermusch 5 years ago
parent e1ff06310c
commit db07f7963e
  1. 4
      test/core/tsi/ssl_transport_security_test.cc

@ -659,12 +659,14 @@ void ssl_tsi_test_do_round_trip_for_all_configs() {
void ssl_tsi_test_do_round_trip_odd_buffer_size() { void ssl_tsi_test_do_round_trip_odd_buffer_size() {
gpr_log(GPR_INFO, "ssl_tsi_test_do_round_trip_odd_buffer_size"); gpr_log(GPR_INFO, "ssl_tsi_test_do_round_trip_odd_buffer_size");
#if !defined(MEMORY_SANITIZER) && !defined(GPR_ARCH_32) #if !defined(MEMORY_SANITIZER) && !defined(GPR_ARCH_32) && !defined(__APPLE__)
const size_t odd_sizes[] = {1025, 2051, 4103, 8207, 16409}; const size_t odd_sizes[] = {1025, 2051, 4103, 8207, 16409};
#else #else
// 1. avoid test being extremely slow under MSAN // 1. avoid test being extremely slow under MSAN
// 2. on 32-bit, the test is much slower (probably due to lack of boringssl // 2. on 32-bit, the test is much slower (probably due to lack of boringssl
// asm optimizations) so we only run a subset of tests to avoid timeout // asm optimizations) so we only run a subset of tests to avoid timeout
// 3. on Mac OS, we have slower testing machines so we only run a subset
// of tests to avoid timeout
const size_t odd_sizes[] = {1025}; const size_t odd_sizes[] = {1025};
#endif #endif
const size_t size = sizeof(odd_sizes) / sizeof(size_t); const size_t size = sizeof(odd_sizes) / sizeof(size_t);

Loading…
Cancel
Save