aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/end2end/end2end_tests.c
diff options
context:
space:
mode:
authorGravatar jtattermusch <jtattermusch@google.com>2014-12-08 15:13:41 -0800
committerGravatar Nicolas Noble <nnoble@google.com>2014-12-08 18:50:13 -0800
commit97fb3f6481cc79ed9409320fcb274b9ea7442aaf (patch)
treee8df2e098bba2a5e8b23136cdd94b66247f68ca1 /test/core/end2end/end2end_tests.c
parentba22e87c6874d240ecd821d0c30c5f01d62c2fdd (diff)
Add mako templates to generate MS Visual Studio projects.
Current state for Windows platform: -- gpr and grpc_test_util can be compiled -- gpr_log_test and gpr_cmdline_test pass Change on 2014/12/08 by jtattermusch <jtattermusch@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=81615574
Diffstat (limited to 'test/core/end2end/end2end_tests.c')
-rw-r--r--test/core/end2end/end2end_tests.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/core/end2end/end2end_tests.c b/test/core/end2end/end2end_tests.c
index 7174d09866..45d55e94bc 100644
--- a/test/core/end2end/end2end_tests.c
+++ b/test/core/end2end/end2end_tests.c
@@ -35,12 +35,12 @@
#include <stdio.h>
#include <string.h>
-#include <unistd.h>
#include <grpc/byte_buffer.h>
#include <grpc/support/alloc.h>
#include <grpc/support/log.h>
#include <grpc/support/time.h>
+#include <grpc/support/string.h>
#include <grpc/support/useful.h>
#include "test/core/end2end/cq_verifier.h"
@@ -206,15 +206,15 @@ static void simple_request_body2(grpc_end2end_test_fixture f) {
static void test_invoke_simple_request(
grpc_end2end_test_config config, const char *name,
void (*body)(grpc_end2end_test_fixture f)) {
- char fullname[64];
+ char *fullname;
grpc_end2end_test_fixture f;
- sprintf(fullname, "%s/%s", __FUNCTION__, name);
-
+ gpr_asprintf(&fullname, "%s/%s", __FUNCTION__, name);
f = begin_test(config, fullname, NULL, NULL);
body(f);
end_test(&f);
config.tear_down_data(&f);
+ gpr_free(fullname);
}
static void test_invoke_10_simple_requests(grpc_end2end_test_config config) {