Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tests failing on Alpine/edge: RealKMSOutputTest.drm_set_gamma* #3019

Closed
AlanGriffiths opened this issue Aug 24, 2023 · 0 comments · Fixed by #3029
Closed

Tests failing on Alpine/edge: RealKMSOutputTest.drm_set_gamma* #3019

AlanGriffiths opened this issue Aug 24, 2023 · 0 comments · Fixed by #3029
Assignees

Comments

@AlanGriffiths
Copy link
Collaborator

Recent PRs are failing on Alpine/edge with:

  71/244 Test  #71: mir_unit_tests_gbm-kms.RealKMSOutputTest.* ...............................................***Failed    0.40 sec
LD_LIBRARY_PATH=/spread/mir/spread/build/build/bin/../lib/
Running main() from main.cpp
Note: Google Test filter = RealKMSOutputTest.*:-:--
[==========] Running 12 tests from 1 test suite.
[----------] Global test environment set-up.
[----------] 12 tests from RealKMSOutputTest
[ RUN ] RealKMSOutputTest.operations_use_existing_crtc
[ OK ] RealKMSOutputTest.operations_use_existing_crtc (0 ms)
[ RUN ] RealKMSOutputTest.operations_use_possible_crtc
[ OK ] RealKMSOutputTest.operations_use_possible_crtc (0 ms)
[ RUN ] RealKMSOutputTest.set_crtc_failure_is_handled_gracefully
[2023-08-24 09:25:54.647503] < - ERROR - > gbm-kms: Failed to set CRTC: No error information (-1)
[2023-08-24 09:25:54.647538] < - ERROR - > gbm-kms: Output VGA-0 has no associated CRTC to schedule page flips on
[ OK ] RealKMSOutputTest.set_crtc_failure_is_handled_gracefully (8 ms)
[ RUN ] RealKMSOutputTest.clear_crtc_gets_crtc_if_none_is_current
[ OK ] RealKMSOutputTest.clear_crtc_gets_crtc_if_none_is_current (0 ms)
[ RUN ] RealKMSOutputTest.clear_crtc_does_not_throw_if_no_crtc_is_found
[ OK ] RealKMSOutputTest.clear_crtc_does_not_throw_if_no_crtc_is_found (0 ms)
[ RUN ] RealKMSOutputTest.cursor_move_permission_failure_is_non_fatal
[2023-08-24 09:25:54.656671] < -warning- > gbm-kms: move_cursor: drmModeMoveCursor failed (Permission denied)
[ OK ] RealKMSOutputTest.cursor_move_permission_failure_is_non_fatal (0 ms)
[ RUN ] RealKMSOutputTest.cursor_set_permission_failure_is_non_fatal
[2023-08-24 09:25:54.657269] < -warning- > gbm-kms: set_cursor: drmModeSetCursor failed (Permission denied)
[ OK ] RealKMSOutputTest.cursor_set_permission_failure_is_non_fatal (0 ms)
[ RUN ] RealKMSOutputTest.has_no_cursor_if_no_hardware_support
[2023-08-24 09:25:54.657761] < -warning- > gbm-kms: set_cursor: drmModeSetCursor failed (No such device or address)
[ OK ] RealKMSOutputTest.has_no_cursor_if_no_hardware_support (0 ms)
[ RUN ] RealKMSOutputTest.clear_crtc_is_non_fatal_on_permission_error
[2023-08-24 09:25:54.658227] <information> gbm-kms: Couldn't clear output VGA-0 (drmModeSetCrtc: Permission denied (13))
[2023-08-24 09:25:54.658266] <information> gbm-kms: Couldn't clear output VGA-0 (drmModeSetCrtc: Operation not permitted (1))
[ OK ] RealKMSOutputTest.clear_crtc_is_non_fatal_on_permission_error (0 ms)
[ RUN ] RealKMSOutputTest.clear_crtc_throws_if_drm_call_fails_for_non_permission_reason
[ OK ] RealKMSOutputTest.clear_crtc_throws_if_drm_call_fails_for_non_permission_reason (0 ms)
[ RUN ] RealKMSOutputTest.drm_set_gamma
/spread/mir/tests/unit-tests/platforms/gbm-kms/kms/test_real_kms_output.cpp:516: Failure
Actual function call count doesn't match EXPECT_CALL(mock_drm, drmModeCrtcSetGamma(drm_fd, crtc_ids[0], gamma.red.size(), const_cast<uint16_t*>(gamma.red.data()), const_cast<uint16_t*>(gamma.green.data()), const_cast<uint16_t*>(gamma.blue.data())))...
Expected: to be called once
Actual: never called - unsatisfied and active

[ FAILED ] RealKMSOutputTest.drm_set_gamma (0 ms)
[ RUN ] RealKMSOutputTest.drm_set_gamma_failure_does_not_throw
/spread/mir/tests/unit-tests/platforms/gbm-kms/kms/test_real_kms_output.cpp:545: Failure
Actual function call count doesn't match EXPECT_CALL(mock_drm, drmModeCrtcSetGamma(drm_fd, crtc_ids[0], gamma.red.size(), const_cast<uint16_t*>(gamma.red.data()), const_cast<uint16_t*>(gamma.green.data()), const_cast<uint16_t*>(gamma.blue.data())))...
Expected: to be called once
Actual: never called - unsatisfied and active

[ FAILED ] RealKMSOutputTest.drm_set_gamma_failure_does_not_throw (0 ms)
[----------] 12 tests from RealKMSOutputTest (14 ms total)

[----------] Global test environment tear-down
[==========] 12 tests from 1 test suite ran. (14 ms total)
[ PASSED ] 10 tests.
[ FAILED ] 2 tests, listed below:
[ FAILED ] RealKMSOutputTest.drm_set_gamma
[ FAILED ] RealKMSOutputTest.drm_set_gamma_failure_does_not_throw

2 FAILED TESTS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant