summaryrefslogtreecommitdiff
path: root/cogl
diff options
context:
space:
mode:
authorJonas Ã…dahl <jadahl@gmail.com>2022-08-05 11:02:25 +0200
committerMarge Bot <marge-bot@gnome.org>2022-08-08 21:59:13 +0000
commitae0f6c549fc5f5fe0da96d0e367c3cd2507cc533 (patch)
tree83b62a7a4c39ba7fc5abf6d4170849cbd158ecdb /cogl
parent57382b6aff2f67fb685ab0abb6fcc680c2091304 (diff)
downloadmutter-ae0f6c549fc5f5fe0da96d0e367c3cd2507cc533.tar.gz
cogl/pipeline-state: Move out failing test to its own file
This test is a known failure, so mark it as such. It's stored in its own file since keeping it in the same as the passing test isn't markable using meson. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2555>
Diffstat (limited to 'cogl')
-rw-r--r--cogl/cogl/cogl-pipeline-state.c35
1 files changed, 0 insertions, 35 deletions
diff --git a/cogl/cogl/cogl-pipeline-state.c b/cogl/cogl/cogl-pipeline-state.c
index ecfc4cd3b..8408a4af9 100644
--- a/cogl/cogl/cogl-pipeline-state.c
+++ b/cogl/cogl/cogl-pipeline-state.c
@@ -1624,38 +1624,3 @@ UNIT_TEST (check_blend_constant_ancestry,
cogl_object_unref (pipeline);
}
-
-UNIT_TEST (check_uniform_ancestry,
- 0 /* no requirements */,
- TEST_KNOWN_FAILURE)
-{
- CoglPipeline *pipeline = cogl_pipeline_new (test_ctx);
- CoglNode *node;
- int pipeline_length = 0;
- int i;
-
- /* Repeatedly making a copy of a pipeline and changing a uniform
- * shouldn't cause a long chain of pipelines to be created */
-
- for (i = 0; i < 20; i++)
- {
- CoglPipeline *tmp_pipeline;
- int uniform_location;
-
- tmp_pipeline = cogl_pipeline_copy (pipeline);
- cogl_object_unref (pipeline);
- pipeline = tmp_pipeline;
-
- uniform_location =
- cogl_pipeline_get_uniform_location (pipeline, "a_uniform");
-
- cogl_pipeline_set_uniform_1i (pipeline, uniform_location, i);
- }
-
- for (node = (CoglNode *) pipeline; node; node = node->parent)
- pipeline_length++;
-
- g_assert_cmpint (pipeline_length, <=, 2);
-
- cogl_object_unref (pipeline);
-}