Use platform suffix api

pull/1617/head
Craig Tiller 10 years ago
parent c21a80957a
commit 7df5d6a7f1
  1. 4
      test/core/fling/fling_test.c

@ -56,7 +56,7 @@ int main(int argc, char **argv) {
strcpy(root, "."); strcpy(root, ".");
} }
/* start the server */ /* start the server */
gpr_asprintf(&args[0], "%s/fling_server", root); gpr_asprintf(&args[0], "%s/fling_server%s", root, gpr_subprocess_binary_extension());
args[1] = "--bind"; args[1] = "--bind";
gpr_join_host_port(&args[2], "::", port); gpr_join_host_port(&args[2], "::", port);
args[3] = "--no-secure"; args[3] = "--no-secure";
@ -65,7 +65,7 @@ int main(int argc, char **argv) {
gpr_free(args[2]); gpr_free(args[2]);
/* start the client */ /* start the client */
gpr_asprintf(&args[0], "%s/fling_client", root); gpr_asprintf(&args[0], "%s/fling_client%s", root, gpr_subprocess_binary_extension());
args[1] = "--target"; args[1] = "--target";
gpr_join_host_port(&args[2], "127.0.0.1", port); gpr_join_host_port(&args[2], "127.0.0.1", port);
args[3] = "--scenario=ping-pong-request"; args[3] = "--scenario=ping-pong-request";

Loading…
Cancel
Save