mir_unit_tests XCursorLoader.* segfaults if the test environment isn't set up
Bug #1348763 reported by
Kevin DuBois
This bug report is a duplicate of:
Bug #1342029: mir_unit_tests: XCursorLoader.loads_cursors_from_testing_theme crashes on N4.
Edit
Remove
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://
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.
Changed in mir: | |
assignee: | nobody → Kevin DuBois (kdub) |
status: | New → In Progress |
To post a comment you must log in.
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.