aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core/end2end
diff options
context:
space:
mode:
authorGravatar Julien Boeuf <jboeuf@google.com>2015-02-03 21:58:53 -0800
committerGravatar Julien Boeuf <jboeuf@google.com>2015-02-03 23:17:12 -0800
commit05618967516ca807d4deadea05e90b439c3f2e7c (patch)
treef8ca8ce2ea0791c47beac372d103d36d937701b5 /test/core/end2end
parent026a417defcd13d0ae5e8a8ddb67c18ff02fa142 (diff)
Addressing comments.
The new gpr_tmpfile API is actually much nicer to use. Thanks Nico!
Diffstat (limited to 'test/core/end2end')
-rw-r--r--test/core/end2end/fixtures/chttp2_simple_ssl_fullstack.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/test/core/end2end/fixtures/chttp2_simple_ssl_fullstack.c b/test/core/end2end/fixtures/chttp2_simple_ssl_fullstack.c
index 876d35a74b..149ac8c07b 100644
--- a/test/core/end2end/fixtures/chttp2_simple_ssl_fullstack.c
+++ b/test/core/end2end/fixtures/chttp2_simple_ssl_fullstack.c
@@ -139,9 +139,8 @@ int main(int argc, char **argv) {
grpc_test_init(argc, argv);
/* Set the SSL roots env var. */
- roots_filename = gpr_strdup("chttp2_simple_ssl_fullstack_test_XXXXXX");
+ roots_file = gpr_tmpfile("chttp2_simple_ssl_fullstack_test", &roots_filename);
GPR_ASSERT(roots_filename != NULL);
- roots_file = gpr_tmpfile(roots_filename);
GPR_ASSERT(roots_file != NULL);
GPR_ASSERT(fwrite(test_root_cert, 1, roots_size, roots_file) == roots_size);
fclose(roots_file);