diff options
author | Erik Faye-Lund <erik.faye-lund@collabora.com> | 2020-07-07 12:49:30 +0200 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2020-07-13 19:27:17 +0000 |
commit | 109b65b67de847930fd89e5107aeb6161b76d4db (patch) | |
tree | 44e87a6abe9e4ffb32f0187377e43a92beac2919 /generated_tests | |
parent | 20829d52e2e29bcdb0525a9ee0f92f9fc984e6f7 (diff) |
builtin-functions: ignore RuntimeWarnings from add-tests
We get warnings about overflow here, but that's exactly the behavior we
want. So let's do like we do for the sub-test, and ignore the warnings.
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/piglit/-/merge_requests/337>
Diffstat (limited to 'generated_tests')
-rw-r--r-- | generated_tests/builtin_function.py | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/generated_tests/builtin_function.py b/generated_tests/builtin_function.py index e249ab00c..9dedbdf32 100644 --- a/generated_tests/builtin_function.py +++ b/generated_tests/builtin_function.py @@ -1598,11 +1598,13 @@ def _make_vector_or_matrix_test_vectors(test_suite_dict): f('determinant', 1, 150, np.linalg.det, None, [squaremats]) - f('op-add', 2, 150, lambda x, y: x + y, match_simple_binop, - [int64s+int64vecs+uint64s+uint64vecs, - int64s+int64vecs+uint64s+uint64vecs], - template='({0} + {1})', - extension="ARB_gpu_shader_int64") + with warnings.catch_warnings(): + warnings.simplefilter('ignore', RuntimeWarning) + f('op-add', 2, 150, lambda x, y: x + y, match_simple_binop, + [int64s+int64vecs+uint64s+uint64vecs, + int64s+int64vecs+uint64s+uint64vecs], + template='({0} + {1})', + extension="ARB_gpu_shader_int64") with warnings.catch_warnings(): warnings.simplefilter('ignore', RuntimeWarning) f('op-sub', 2, 150, lambda x, y: x - y, match_simple_binop, |