[Piglit] [PATCH v2 2/3] tests/cl: Also hide deprecation warnings in tests

Dylan Baker dylan at pnwbakers.com
Mon May 16 19:35:40 UTC 2016


This does the same thing as the previous patch, but touches test files
instead of utils files.

Signed-off-by: Dylan Baker <dylanx.c.baker at intel.com>
---
 tests/cl/api/create-command-queue.c         | 3 +++
 tests/cl/api/create-sampler.c               | 3 +++
 tests/cl/api/get-image-info.c               | 3 +++
 tests/cl/api/retain_release-command-queue.c | 3 +++
 tests/cl/api/set-kernel-arg.c               | 3 +++
 5 files changed, 15 insertions(+)

diff --git a/tests/cl/api/create-command-queue.c b/tests/cl/api/create-command-queue.c
index 0ffd137..8f296bc 100644
--- a/tests/cl/api/create-command-queue.c
+++ b/tests/cl/api/create-command-queue.c
@@ -64,6 +64,8 @@ get_mixed_command_queue_properties(int mask,
 	return mixed_properties;
 }
 
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
 enum piglit_result
 piglit_cl_test(const int argc,
                const char** argv,
@@ -196,3 +198,4 @@ piglit_cl_test(const int argc,
 
 	return result;
 }
+#pragma GCC diagnostic pop
diff --git a/tests/cl/api/create-sampler.c b/tests/cl/api/create-sampler.c
index d51fe47..b8026e9 100644
--- a/tests/cl/api/create-sampler.c
+++ b/tests/cl/api/create-sampler.c
@@ -36,6 +36,8 @@ PIGLIT_CL_API_TEST_CONFIG_BEGIN
 
 PIGLIT_CL_API_TEST_CONFIG_END
 
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
 static enum piglit_result
 no_image_tests(const struct piglit_cl_api_test_env* env)
 {
@@ -57,6 +59,7 @@ no_image_tests(const struct piglit_cl_api_test_env* env)
 
 	return result;
 }
+#pragma GCC diagnostic pop
 
 enum piglit_result
 piglit_cl_test(const int argc,
diff --git a/tests/cl/api/get-image-info.c b/tests/cl/api/get-image-info.c
index d4dc842..839621f 100644
--- a/tests/cl/api/get-image-info.c
+++ b/tests/cl/api/get-image-info.c
@@ -46,6 +46,8 @@ PIGLIT_CL_API_TEST_CONFIG_BEGIN
 
 PIGLIT_CL_API_TEST_CONFIG_END
 
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
 enum piglit_result
 piglit_cl_test(const int argc,
                const char** argv,
@@ -198,3 +200,4 @@ piglit_cl_test(const int argc,
 
 	return result;
 }
+#pragma GCC diagnostic pop
diff --git a/tests/cl/api/retain_release-command-queue.c b/tests/cl/api/retain_release-command-queue.c
index 3eb746c..7c820af 100644
--- a/tests/cl/api/retain_release-command-queue.c
+++ b/tests/cl/api/retain_release-command-queue.c
@@ -44,6 +44,8 @@ PIGLIT_CL_API_TEST_CONFIG_BEGIN
 PIGLIT_CL_API_TEST_CONFIG_END
 
 
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
 enum piglit_result
 piglit_cl_test(const int argc,
                const char** argv,
@@ -141,3 +143,4 @@ piglit_cl_test(const int argc,
 
 	return PIGLIT_PASS;
 }
+#pragma GCC diagnostic pop
diff --git a/tests/cl/api/set-kernel-arg.c b/tests/cl/api/set-kernel-arg.c
index 9b5a567..bd29e4b 100644
--- a/tests/cl/api/set-kernel-arg.c
+++ b/tests/cl/api/set-kernel-arg.c
@@ -82,6 +82,8 @@ test (cl_kernel kernel,
 		piglit_report_subtest_result(res, "%s", test_str);
 }
 
+#pragma GCC diagnostic push
+#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
 enum piglit_result
 piglit_cl_test(const int argc,
                const char** argv,
@@ -285,3 +287,4 @@ piglit_cl_test(const int argc,
 
 	return result;
 }
+#pragma GCC diagnostic pop
-- 
2.8.2



More information about the Piglit mailing list