From: Kenneth Graunke Date: Sat, 14 May 2016 02:26:37 +0000 (-0700) Subject: glsl: Drop bad ASSERT_TRUE in gl_CullDistance link_varyings test. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d4d7e1516b4f14b65192ae856a44a2c10788c9fe;p=mesa.git glsl: Drop bad ASSERT_TRUE in gl_CullDistance link_varyings test. I don't know what the intention was here, but this function returns void. We can't assert anything about its return value. Fixes "make check" failures. v2: Also fix prototype for the function (caught by Jordan). Signed-off-by: Kenneth Graunke Reviewed-by: Jordan Justen --- diff --git a/src/compiler/glsl/tests/varyings_test.cpp b/src/compiler/glsl/tests/varyings_test.cpp index 936f49581d7..cabda7a01d4 100644 --- a/src/compiler/glsl/tests/varyings_test.cpp +++ b/src/compiler/glsl/tests/varyings_test.cpp @@ -35,7 +35,7 @@ */ namespace linker { -bool +void populate_consumer_input_sets(void *mem_ctx, exec_list *ir, hash_table *consumer_inputs, hash_table *consumer_interface_inputs, @@ -210,11 +210,11 @@ TEST_F(link_varyings, gl_CullDistance) ir.push_tail(culldistance); - ASSERT_TRUE(linker::populate_consumer_input_sets(mem_ctx, - &ir, - consumer_inputs, - consumer_interface_inputs, - junk)); + linker::populate_consumer_input_sets(mem_ctx, + &ir, + consumer_inputs, + consumer_interface_inputs, + junk); EXPECT_EQ(culldistance, junk[VARYING_SLOT_CULL_DIST0]); EXPECT_TRUE(is_empty(consumer_inputs));