Mir

mir_unit_tests XCursorLoader.* segfaults if the test environment isn't set up

Bug #1348763 reported by Kevin DuBois
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Mir
In Progress
Medium
Kevin DuBois

Bug Description

I noticed during a debug session with a porter that the unit tests were having a problem: (http://paste.ubuntu.com/7848753/)
CI seems to be unaffected because it seems to just be a problem with cross compiling .
Backtrace attached, just seems it doesn't behave nicely if it cant find some files to load.

Revision history for this message
Kevin DuBois (kdub) wrote :
Kevin DuBois (kdub)
Changed in mir:
assignee: nobody → Kevin DuBois (kdub)
status: New → In Progress
Revision history for this message
Kevin DuBois (kdub) wrote :

So what is happening is the path is hardcoded and won't work if the build tree of the source gets deleted (or if you transfer the binaries to a different machine). Furthermore, if the cursor files are not in that location, the test will segfault.

Currently working on 1) not segfaulting if the directory and files arent there and 2) detecting the cursor path more like how the udev recordings are detected.

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

Duplicate of bug 1342029

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

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