Merge pull request #16681 from arrowd/master

Fix various tests on FreeBSD.
pull/18722/head
Vijay Pai 6 years ago committed by GitHub
commit ec06d677e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      test/core/iomgr/socket_utils_test.cc
  2. 4
      test/cpp/interop/interop_test.cc
  3. 1
      test/cpp/naming/address_sorting_test.cc
  4. 4
      test/cpp/naming/resolver_component_tests_runner_invoker.cc
  5. 4
      test/cpp/qps/json_run_localhost.cc

@ -24,6 +24,7 @@
#include "src/core/lib/iomgr/socket_utils_posix.h" #include "src/core/lib/iomgr/socket_utils_posix.h"
#include <errno.h> #include <errno.h>
#include <netinet/in.h>
#include <netinet/ip.h> #include <netinet/ip.h>
#include <string.h> #include <string.h>

@ -16,10 +16,6 @@
* *
*/ */
#ifndef _POSIX_SOURCE
#define _POSIX_SOURCE
#endif
#include <assert.h> #include <assert.h>
#include <signal.h> #include <signal.h>
#include <stdio.h> #include <stdio.h>

@ -52,6 +52,7 @@
#ifndef GPR_WINDOWS #ifndef GPR_WINDOWS
#include <arpa/inet.h> #include <arpa/inet.h>
#include <netinet/in.h>
#include <sys/socket.h> #include <sys/socket.h>
#endif #endif

@ -29,6 +29,10 @@
#include <thread> #include <thread>
#include <vector> #include <vector>
#ifdef __FreeBSD__
#include <sys/wait.h>
#endif
#include "test/cpp/util/subprocess.h" #include "test/cpp/util/subprocess.h"
#include "test/cpp/util/test_config.h" #include "test/cpp/util/test_config.h"

@ -24,6 +24,10 @@
#include <sstream> #include <sstream>
#include <string> #include <string>
#ifdef __FreeBSD__
#include <sys/wait.h>
#endif
#include <grpc/support/log.h> #include <grpc/support/log.h>
#include "src/core/lib/gpr/env.h" #include "src/core/lib/gpr/env.h"

Loading…
Cancel
Save