Merge lp:~vanvugt/mir/fix-1493721 into lp:mir
Proposed by
Daniel van Vugt
Status: | Merged |
---|---|
Approved by: | Alexandros Frantzis |
Approved revision: | no longer in the source branch. |
Merged at revision: | 3002 |
Proposed branch: | lp:~vanvugt/mir/fix-1493721 |
Merge into: | lp:mir |
Diff against target: |
144 lines (+71/-13) 2 files modified
src/platforms/mesa/server/kms/display_buffer.cpp (+11/-12) tests/unit-tests/graphics/mesa/kms/test_display_buffer.cpp (+60/-1) |
To merge this branch: | bzr merge lp:~vanvugt/mir/fix-1493721 |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Approve | |
Chris Halse Rogers | Approve | ||
Alan Griffiths | Approve | ||
Review via email: mp+273021@code.launchpad.net |
Commit message
Fix Mir server crash when Xmir -sw connects (or any fullscreen opaque
software client in theory) (LP: #1493721)
The problem was the bypass logic prematurely cast native buffer objects
into GBM buffer objects, without checking if that's safe.
Description of the change
.
To post a comment you must log in.
+ Mock::VerifyAnd ClearExpectatio ns(&mock_ gbm); ClearExpectatio ns(&mock_ gbm); ClearExpectatio ns(&mock_ gbm); ClearExpectatio ns(&mock_ gbm); ClearExpectatio ns(&mock_ gbm);
...
+
+ Mock::VerifyAnd
...
+
+ Mock::VerifyAnd
...
+
+ Mock::VerifyAnd
...
+
+ Mock::VerifyAnd
Something seems wrong here. mock_gbm is destroyed on test exit and its expectations validated there. Why do we need these (apparently redundant) explicit check just before test exit?