Merge lp:~pitti/qtubuntu-sensors/crash-without-hw into lp:qtubuntu-sensors
Proposed by
Martin Pitt
Status: | Merged |
---|---|
Approved by: | Sergio Schvezov |
Approved revision: | 52 |
Merged at revision: | 50 |
Proposed branch: | lp:~pitti/qtubuntu-sensors/crash-without-hw |
Merge into: | lp:qtubuntu-sensors |
Diff against target: |
246 lines (+127/-11) 4 files modified
debian/control (+1/-1) plugins/sensors/core_shared_accelerometer.cpp (+10/-3) plugins/sensors/core_shared_accelerometer.h (+1/-0) tests/test_sensor_api.cpp (+115/-7) |
To merge this branch: | bzr merge lp:~pitti/qtubuntu-sensors/crash-without-hw |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Sergio Schvezov | Approve | ||
PS Jenkins bot | continuous-integration | Approve | |
Review via email: mp+203931@code.launchpad.net |
Commit message
Fix crash if there are no available sensors.
Description of the change
This provides the qtubuntu-sensors part of the crash fix for LP#1272294. See
the commit logs for details.
Note that this depends on ua_sensors_
NULL in the "no sensors" case instead of crashing. That part needs to get fixed
in platform-api, hence blocking this MP until that lands.
To post a comment you must log in.
Now that the platform-api fix has finally landed, I bumped the build dependency accordingly (otherwise this new test would just crash), it's now ready to land.