Mir

Merge lp:~mir-team/mir/fix-1364772 into lp:mir

Proposed by Daniel van Vugt
Status: Merged
Approved by: Daniel van Vugt
Approved revision: no longer in the source branch.
Merged at revision: 1889
Proposed branch: lp:~mir-team/mir/fix-1364772
Merge into: lp:mir
Diff against target: 12 lines (+2/-1)
1 file modified
tests/acceptance-tests/test_server_disconnect.cpp (+2/-1)
To merge this branch: bzr merge lp:~mir-team/mir/fix-1364772
Reviewer Review Type Date Requested Status
Alexandros Frantzis (community) Approve
PS Jenkins bot (community) continuous-integration Approve
Chris Halse Rogers Approve
Review via email: mp+233298@code.launchpad.net

Commit message

Work around spurious SIGKILL delivered to clients by Valgrind during
tests. This is why CI is failing randomly (LP: #1364772)

Actually this workaround is nothing new. A quick grep shows we already
use the same hack in 13 other locations under tests/.

To post a comment you must log in.
Revision history for this message
Chris Halse Rogers (raof) wrote :

Yeah, fair enough.

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

Looks good.

We should consider exposing a matcher to deduplicate the workaround logic, e.g., like the ValgrindSafeSignalMatches matcher proposed in https://code.launchpad.net/~kdub/mir/ignore-sigkill-for-valgrind/+merge/233270 .

review: Approve
Revision history for this message
Chris Halse Rogers (raof) wrote :

Do we have any idea why valgrind sometimes, but not always,
transliterates signals into SIGKILL?

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

No, but it has been doing so for a long time.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/acceptance-tests/test_server_disconnect.cpp'
2--- tests/acceptance-tests/test_server_disconnect.cpp 2014-09-01 04:53:25 +0000
3+++ tests/acceptance-tests/test_server_disconnect.cpp 2014-09-04 03:51:46 +0000
4@@ -226,6 +226,7 @@
5 ASSERT_EQ(1, client_results.size());
6 EXPECT_EQ(mtf::TerminationReason::child_terminated_by_signal,
7 client_results[0].reason);
8- EXPECT_EQ(SIGHUP, client_results[0].signal);
9+ int sig = client_results[0].signal;
10+ EXPECT_TRUE(sig == SIGHUP || sig == SIGKILL /* (Valgrind) */);
11 });
12 }

Subscribers

People subscribed via source and target branches