aboutsummaryrefslogtreecommitdiffhomepage
path: root/templates
diff options
context:
space:
mode:
authorGravatar Craig Tiller <craig.tiller@gmail.com>2016-01-07 16:37:03 -0800
committerGravatar Craig Tiller <craig.tiller@gmail.com>2016-01-07 16:37:03 -0800
commit7cc0f464d12696b0f5c26d3ad248215c9ff63c27 (patch)
treec572b7fc730350ebd7ff3201ded323cfee9dad3f /templates
parent54ed674d406e43a9c54ad103b5ea454d73a64c3b (diff)
parentabf85d96481a35d26ecfd16575f0a13846d3b8e5 (diff)
Merge github.com:grpc/grpc into proto_names
Diffstat (limited to 'templates')
-rw-r--r--templates/Makefile.template12
-rw-r--r--templates/test/core/end2end/end2end_defs.include2
-rw-r--r--templates/test/core/end2end/end2end_nosec_tests.c.template3
-rw-r--r--templates/test/core/end2end/end2end_tests.c.template3
-rw-r--r--templates/test/core/surface/public_headers_must_be_c89.c.template4
5 files changed, 10 insertions, 14 deletions
diff --git a/templates/Makefile.template b/templates/Makefile.template
index bbe409c43e..ba5a80659c 100644
--- a/templates/Makefile.template
+++ b/templates/Makefile.template
@@ -163,9 +163,9 @@
CXX_tsan = clang++
LD_tsan = clang
LDXX_tsan = clang++
- CFLAGS_tsan = -O0 -fsanitize=thread -fno-omit-frame-pointer -Wno-unused-command-line-argument
- CXXFLAGS_tsan = -O0 -fsanitize=thread -fno-omit-frame-pointer -Wno-unused-command-line-argument
- LDFLAGS_tsan = -fsanitize=thread
+ CFLAGS_tsan = -O0 -fsanitize=thread -fno-omit-frame-pointer -Wno-unused-command-line-argument -fPIE
+ CXXFLAGS_tsan = -O0 -fsanitize=thread -fno-omit-frame-pointer -Wno-unused-command-line-argument -fPIE
+ LDFLAGS_tsan = -fsanitize=thread -pie
DEFINES_tsan = NDEBUG GRPC_TEST_SLOWDOWN_BUILD_FACTOR=10
VALID_CONFIG_asan = 1
@@ -185,9 +185,9 @@
CXX_msan = clang++-libc++
LD_msan = clang
LDXX_msan = clang++-libc++
- CFLAGS_msan = -O0 -fsanitize=memory -fsanitize-memory-track-origins -fno-omit-frame-pointer -DGTEST_HAS_TR1_TUPLE=0 -DGTEST_USE_OWN_TR1_TUPLE=1 -Wno-unused-command-line-argument
- CXXFLAGS_msan = -O0 -fsanitize=memory -fsanitize-memory-track-origins -fno-omit-frame-pointer -DGTEST_HAS_TR1_TUPLE=0 -DGTEST_USE_OWN_TR1_TUPLE=1 -Wno-unused-command-line-argument
- LDFLAGS_msan = -fsanitize=memory -DGTEST_HAS_TR1_TUPLE=0 -DGTEST_USE_OWN_TR1_TUPLE=1
+ CFLAGS_msan = -O0 -fsanitize=memory -fsanitize-memory-track-origins -fno-omit-frame-pointer -DGTEST_HAS_TR1_TUPLE=0 -DGTEST_USE_OWN_TR1_TUPLE=1 -Wno-unused-command-line-argument -fPIE
+ CXXFLAGS_msan = -O0 -fsanitize=memory -fsanitize-memory-track-origins -fno-omit-frame-pointer -DGTEST_HAS_TR1_TUPLE=0 -DGTEST_USE_OWN_TR1_TUPLE=1 -Wno-unused-command-line-argument -fPIE
+ LDFLAGS_msan = -fsanitize=memory -DGTEST_HAS_TR1_TUPLE=0 -DGTEST_USE_OWN_TR1_TUPLE=1 -pie
DEFINES_msan = NDEBUG GRPC_TEST_SLOWDOWN_BUILD_FACTOR=4
VALID_CONFIG_ubsan = 1
diff --git a/templates/test/core/end2end/end2end_defs.include b/templates/test/core/end2end/end2end_defs.include
index e95bd4a8b6..1b13bba94c 100644
--- a/templates/test/core/end2end/end2end_defs.include
+++ b/templates/test/core/end2end/end2end_defs.include
@@ -1,7 +1,7 @@
<%def name="end2end_selector(tests)">
/*
*
- * Copyright 2015, Google Inc.
+ * Copyright 2015-2016, Google Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/templates/test/core/end2end/end2end_nosec_tests.c.template b/templates/test/core/end2end/end2end_nosec_tests.c.template
index b70b724d50..3719ded75d 100644
--- a/templates/test/core/end2end/end2end_nosec_tests.c.template
+++ b/templates/test/core/end2end/end2end_nosec_tests.c.template
@@ -1,5 +1,4 @@
%YAML 1.2
--- |
- <%namespace file="end2end_defs.include" import="*"/>
+ <%namespace file="end2end_defs.include" import="*"/>\
${end2end_selector(k for k, v in core_end2end_tests.iteritems() if not v)}
-
diff --git a/templates/test/core/end2end/end2end_tests.c.template b/templates/test/core/end2end/end2end_tests.c.template
index ecb1565e23..e6a49f2795 100644
--- a/templates/test/core/end2end/end2end_tests.c.template
+++ b/templates/test/core/end2end/end2end_tests.c.template
@@ -1,5 +1,4 @@
%YAML 1.2
--- |
- <%namespace file="end2end_defs.include" import="*"/>
+ <%namespace file="end2end_defs.include" import="*"/>\
${end2end_selector(core_end2end_tests.keys())}
-
diff --git a/templates/test/core/surface/public_headers_must_be_c89.c.template b/templates/test/core/surface/public_headers_must_be_c89.c.template
index aff4ac5bcc..e132256cb8 100644
--- a/templates/test/core/surface/public_headers_must_be_c89.c.template
+++ b/templates/test/core/surface/public_headers_must_be_c89.c.template
@@ -54,6 +54,4 @@
#include <${hdr}>
% endfor
- int main(int argc, char **argv) {
- return 0;
- }
+ int main(int argc, char **argv) { return 0; }