Mir

mir_unit_tests: XCursorLoader.loads_cursors_from_testing_theme crashes on N4

Bug #1342029 reported by Daniel van Vugt
18
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Mir
Fix Released
Medium
Kevin DuBois
mir (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

mir_unit_tests: XCursorLoader.loads_cursors_from_testing_theme crashes on N4

umockdev-run -- bin/mir_unit_tests --gtest_filter="XCursorLoader*"
Running main() from command_line_server_configuration.cpp
Note: Google Test filter = XCursorLoader*
[==========] Running 4 tests from 1 test case.
[----------] Global test environment set-up.
[----------] 4 tests from XCursorLoader
[ RUN ] XCursorLoader.loads_cursors_from_testing_theme
Segmentation fault (core dumped)

Related branches

tags: added: cursor
Changed in mir:
assignee: nobody → Kevin DuBois (kdub)
status: New → In Progress
milestone: none → 0.6.0
importance: Undecided → Medium
Revision history for this message
Kevin DuBois (kdub) wrote :

So what is happening is we have a hardcoded path to the cursor images that is based on the directory that the code was compiled in. Installing to this specific directory is not accommodated for in the deploy-and-test.sh script. When the cursor images fail to load (because the directory is not present), the test will then segfault.

Changing the test to 1) find the cursor images from its current working directory (much like the udev recordings), and 2) fail instead of segfault if it cannot find the images.

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

Fix committed into lp:mir/devel at revision None, scheduled for release in mir, milestone Unknown

Changed in mir:
status: In Progress → Fix Committed
Changed in mir:
status: Fix Committed → Fix Released
Revision history for this message
Daniel van Vugt (vanvugt) wrote :

mir (0.6.0+14.10.20140811-0ubuntu1) utopic; urgency=medium

Changed in mir (Ubuntu):
importance: Undecided → Medium
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Duplicates of this bug

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.