From ab23045414dbe120fa307b8c07ca6f3f73b3dbe5 Mon Sep 17 00:00:00 2001 From: Craig Tiller Date: Mon, 4 Jan 2016 08:18:43 -0800 Subject: Add a test that public headers compile as C99 --- tools/run_tests/sources_and_headers.json | 12 ++++++++++++ tools/run_tests/tests.json | 19 +++++++++++++++++++ 2 files changed, 31 insertions(+) (limited to 'tools') diff --git a/tools/run_tests/sources_and_headers.json b/tools/run_tests/sources_and_headers.json index 75debf41bb..74a1fac902 100644 --- a/tools/run_tests/sources_and_headers.json +++ b/tools/run_tests/sources_and_headers.json @@ -2028,6 +2028,18 @@ "test/cpp/end2end/zookeeper_test.cc" ] }, + { + "deps": [ + "gpr", + "grpc" + ], + "headers": [], + "language": "c89", + "name": "public_headers_must_be_c89", + "src": [ + "test/core/surface/public_headers_must_be_c89.c" + ] + }, { "deps": [ "end2end_certs", diff --git a/tools/run_tests/tests.json b/tools/run_tests/tests.json index 0b5f847af1..d4839e235f 100644 --- a/tools/run_tests/tests.json +++ b/tools/run_tests/tests.json @@ -2058,6 +2058,25 @@ "windows" ] }, + { + "args": [], + "ci_platforms": [ + "linux", + "mac", + "posix", + "windows" + ], + "exclude_configs": [], + "flaky": false, + "language": "c89", + "name": "public_headers_must_be_c89", + "platforms": [ + "linux", + "mac", + "posix", + "windows" + ] + }, { "args": [], "ci_platforms": [ -- cgit v1.2.3