kms_universal_plane: Don't assert outside of fixtures/subtests
PATCH 1/1 kms_universal_plane: Don't assert outside of fixtures/subtests
Doing otherwise breaks listing the subtests. The test was throwing an error out when universal planes were disabled as well because of that.
--- tests/kms_universal_plane.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
tests/kms_universal_plane.c +1 -2
@@ -133,6 +133,7 @@ functional_test_pipe(data_t *data, enum pipe pipe, igt_output_t *output)int num_primary =0 , num_cursor =0 ;int i; +igt_assert (data->display.has_universal_planes);igt_skip_on (pipe >= display->n_pipes); fprintf(stdout, "Testing connector %s using pipe %c\n",
@@ -535,8 +536,6 @@ run_tests_for_pipe(data_t *data, enum pipe pipe) {igt_output_t *output; -igt_assert (data->display.has_universal_planes); - igt_subtest_f("universal-plane-pipe-%c-functional", pipe_name(pipe))for_each_connected_output (&data->display, output)functional_test_pipe (data, pipe, output);
Signature · 1 line
1.8.3.1
Quoted 14 lines · Damien Lespiau
Doing otherwise breaks listing the subtests. The test was throwing an error out when universal planes were disabled as well because of that.
Cc Matt Roper <[email protected]>Signed-off-by Damien Lespiau <[email protected]>--- tests/kms_universal_plane.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)tests/kms_universal_plane.c +0
-0
tests/kms_universal_plane.c functional_test_pipe(data_t *data, enum pipe pipe, igt_output_t *output) · line 136
Quoted 4 lines
tests/kms_universal_plane.c +1
-0@@ -133,6 +133,7 @@ functional_test_pipe(data_t *data, enum pipe pipe, igt_output_t *output)int num_primary =0 , num_cursor =0 ;int i; +igt_assert (data->display.has_universal_planes);
Shouldn't this be an igt_require instead? In any case moving this into subtests is correct.
-Daniel
Quoted 19 lines
tests/kms_universal_plane.c +0
-2igt_skip_on (pipe >= display->n_pipes); fprintf(stdout, "Testing connector %s using pipe %c\n",@@ -535,8 +536,6 @@ run_tests_for_pipe(data_t *data, enum pipe pipe) {igt_output_t *output; -igt_assert (data->display.has_universal_planes); - igt_subtest_f("universal-plane-pipe-%c-functional", pipe_name(pipe))for_each_connected_output (&data->display, output)functional_test_pipe (data, pipe, output);Signature · 6 lines
1.8.3.1 _______________________________________________ Intel-gfx mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/intel-gfx
Signature · 3 lines
Daniel Vetter Software Engineer, Intel Corporation +41 (0) 79 365 57 48 - http://blog.ffwll.ch
Quoted 18 lines · Daniel Vetter
Quoted 17 lines · Damien Lespiau
Doing otherwise breaks listing the subtests. The test was throwing an error out when universal planes were disabled as well because of that.
Cc Matt Roper <[email protected]>Signed-off-by Damien Lespiau <[email protected]>--- tests/kms_universal_plane.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)tests/kms_universal_plane.c +0
-0@@ -133,6 +133,7 @@ functional_test_pipe(data_t *data, enum pipe pipe, igt_output_t *output)int num_primary =0 , num_cursor =0 ;int i;
Quoted 4 lines
tests/kms_universal_plane.c functional_test_pipe(data_t *data, enum pipe pipe, igt_output_t *output) · line 136
Quoted 1 line
tests/kms_universal_plane.c +1
-0+igt_assert (data->display.has_universal_planes);Shouldn't this be an
igt_requireinstead? In any case moving this into subtests is correct.
There's already a igt_require in the fixture block, I guess Matt wanted to be extra extra sure. Could have removed it as well.
Signature · 1 line
Damien