Merge lp:~alan-griffiths/miral/fix-1621917 into lp:miral

Proposed by Alan Griffiths
Status: Merged
Approved by: Gerry Boland
Approved revision: 323
Merged at revision: 329
Proposed branch: lp:~alan-griffiths/miral/fix-1621917
Merge into: lp:miral
Prerequisite: lp:~alan-griffiths/miral/track-lp-mir
Diff against target: 36 lines (+12/-1)
1 file modified
test/test_server.cpp (+12/-1)
To merge this branch: bzr merge lp:~alan-griffiths/miral/fix-1621917
Reviewer Review Type Date Requested Status
Gerry Boland (community) Approve
Review via email: mp+305442@code.launchpad.net

Commit message

Fix test failures when built against Mir trunk

Description of the change

Fix test failures when built against Mir trunk

NB this needs lp:~alan-griffiths/mir/fix-1621917/+merge/305439

To post a comment you must log in.
Revision history for this message
Gerry Boland (gerboland) wrote :

Dependent landed, acking this

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'test/test_server.cpp'
--- test/test_server.cpp 2016-08-16 11:52:37 +0000
+++ test/test_server.cpp 2016-09-12 08:32:47 +0000
@@ -22,13 +22,17 @@
22#include <miral/set_window_managment_policy.h>22#include <miral/set_window_managment_policy.h>
2323
24#include <mir_test_framework/executable_path.h>24#include <mir_test_framework/executable_path.h>
25#include "mir_test_framework/stub_server_platform_factory.h"25#include <mir_test_framework/stub_server_platform_factory.h>
2626
27#include <mir/fd.h>27#include <mir/fd.h>
28#include <mir/main_loop.h>28#include <mir/main_loop.h>
29#include <mir/server.h>29#include <mir/server.h>
30#include <mir/version.h>30#include <mir/version.h>
3131
32#if MIR_SERVER_VERSION >= MIR_VERSION_NUMBER(0, 25, 0)
33#include <mir_test_framework/headless_display_buffer_compositor_factory.h>
34#endif
35
32#include <boost/throw_exception.hpp>36#include <boost/throw_exception.hpp>
3337
3438
@@ -72,6 +76,13 @@
72 started.notify_one();76 started.notify_one();
73 });77 });
74 });78 });
79
80#if MIR_SERVER_VERSION >= MIR_VERSION_NUMBER(0, 25, 0)
81 server.override_the_display_buffer_compositor_factory([]
82 {
83 return std::make_shared<mtf::HeadlessDisplayBufferCompositorFactory>();
84 });
85#endif
75 };86 };
7687
77 try88 try

Subscribers

People subscribed via source and target branches