Mir

Merge lp:~robertcarr/mir/cbranch-can-not-be-named-fix-1247718 into lp:mir

Proposed by Robert Carr
Status: Merged
Approved by: Daniel van Vugt
Approved revision: no longer in the source branch.
Merged at revision: 1240
Proposed branch: lp:~robertcarr/mir/cbranch-can-not-be-named-fix-1247718
Merge into: lp:mir
Diff against target: 34 lines (+4/-4)
2 files modified
tests/unit-tests/input/android/test_android_communication_package.cpp (+2/-2)
tests/unit-tests/input/android/test_android_input_manager.cpp (+2/-2)
To merge this branch: bzr merge lp:~robertcarr/mir/cbranch-can-not-be-named-fix-1247718
Reviewer Review Type Date Requested Status
Daniel van Vugt Approve
PS Jenkins bot (community) continuous-integration Approve
Kevin DuBois (community) Approve
Review via email: mp+195629@code.launchpad.net

Commit message

test_android_communication_package: Do not expect opened fd to be >0, we may
have closed stdin making this a valid value (LP: #1247718)

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Kevin DuBois (kdub) wrote :

this built for me locally... looks okay too

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

I think you forgot the other half:
test_android_communication_package.cpp

(see bug 1247718)

review: Needs Fixing
Revision history for this message
Robert Carr (robertcarr) wrote :

Fixed after embarrassing levels of branch confusion

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

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/unit-tests/input/android/test_android_communication_package.cpp'
2--- tests/unit-tests/input/android/test_android_communication_package.cpp 2013-11-12 02:55:58 +0000
3+++ tests/unit-tests/input/android/test_android_communication_package.cpp 2013-11-19 18:58:39 +0000
4@@ -35,8 +35,8 @@
5
6 server_fd = package.server_fd();
7 client_fd = package.client_fd();
8- EXPECT_GT(server_fd, 0);
9- EXPECT_GT(client_fd, 0);
10+ EXPECT_LE(0, server_fd);
11+ EXPECT_LE(0, client_fd);
12
13 EXPECT_EQ(fcntl(server_fd, F_GETFD), 0);
14 EXPECT_EQ(fcntl(client_fd, F_GETFD), 0);
15
16=== modified file 'tests/unit-tests/input/android/test_android_input_manager.cpp'
17--- tests/unit-tests/input/android/test_android_input_manager.cpp 2013-11-12 02:55:58 +0000
18+++ tests/unit-tests/input/android/test_android_input_manager.cpp 2013-11-19 18:58:39 +0000
19@@ -19,6 +19,7 @@
20 #include "src/server/input/android/android_input_manager.h"
21 #include "src/server/input/android/android_input_thread.h"
22 #include "src/server/input/android/android_input_constants.h"
23+#include "src/server/input/android/android_input_channel.h"
24
25 #include "mir/input/input_channel.h"
26
27@@ -155,6 +156,5 @@
28 mia::InputManager manager(event_hub, dispatcher, reader_thread, dispatcher_thread);
29
30 auto package = manager.make_input_channel();
31- EXPECT_GT(package->client_fd(), 0);
32- EXPECT_GT(package->server_fd(), 0);
33+ EXPECT_NE(nullptr, std::dynamic_pointer_cast<mia::AndroidInputChannel>(package));
34 }

Subscribers

People subscribed via source and target branches