Mir

Merge lp:~albaguirre/mir/workaround-for-1482274 into lp:mir

Proposed by Alberto Aguirre
Status: Merged
Approved by: Alberto Aguirre
Approved revision: no longer in the source branch.
Merged at revision: 2820
Proposed branch: lp:~albaguirre/mir/workaround-for-1482274
Merge into: lp:mir
Diff against target: 12 lines (+1/-1)
1 file modified
tests/unit-tests/test_glib_main_loop.cpp (+1/-1)
To merge this branch: bzr merge lp:~albaguirre/mir/workaround-for-1482274
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Kevin DuBois (community) Approve
Alan Griffiths Approve
Review via email: mp+267216@code.launchpad.net

Commit message

Workaround for GLibMainLoopTest.propagates_exception_from_server_action failure

The test fails with GCC5 when using -O2 options in armhf which seems to be caused by using identical lambda definitions.
As a workaround the exception message is changed to force the compiler to generate a unique implementation instead of sharing one;this allows the exception to be caught as expected.

Description of the change

Workaround for GLibMainLoopTest.propagates_exception_from_server_action failure

The test fails with GCC5 when using -O2 options in armhf which seems to be caused by using identical lambda definitions.
As a workaround the exception message is changed to force the compiler to generate a unique implementation instead of sharing one;this allows the exception to be caught as expected.

To post a comment you must log in.
Revision history for this message
Alan Griffiths (alan-griffiths) wrote :

WTF?!

review: Approve
Revision history for this message
Kevin DuBois (kdub) wrote :

a zany bug, lgtm.

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/unit-tests/test_glib_main_loop.cpp'
2--- tests/unit-tests/test_glib_main_loop.cpp 2015-08-04 17:47:18 +0000
3+++ tests/unit-tests/test_glib_main_loop.cpp 2015-08-06 16:22:05 +0000
4@@ -771,7 +771,7 @@
5 execute_in_forked_process(this,
6 [&]
7 {
8- ml.enqueue(this, [] { throw std::runtime_error("server action error"); });
9+ ml.enqueue(this, [] { throw std::runtime_error("server action exception"); });
10
11 EXPECT_THROW({
12 ml.run();

Subscribers

People subscribed via source and target branches