Skip to content

Commit 9008931

Browse files
committed
auto merge of #11531 : brson/rust/yetmoreandroidfixes, r=alexcrichton
2 parents b11c3e3 + 062b0fd commit 9008931

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

mk/tests.mk

+8-8
Original file line numberDiff line numberDiff line change
@@ -445,17 +445,17 @@ check-stage$(1)-T-$(2)-H-$(3)-$(4)-exec: $$(call TEST_OK_FILE,$(1),$(2),$(3),$(4
445445
$$(call TEST_OK_FILE,$(1),$(2),$(3),$(4)): \
446446
$(3)/stage$(1)/test/$(4)test-$(2)$$(X_$(2))
447447
@$$(call E, run: $$< via adb)
448-
@$(CFG_ADB) push $$< $(CFG_ADB_TEST_DIR)
449-
@$(CFG_ADB) shell '(cd $(CFG_ADB_TEST_DIR); LD_LIBRARY_PATH=. \
448+
$$(Q)$(CFG_ADB) push $$< $(CFG_ADB_TEST_DIR)
449+
$$(Q)$(CFG_ADB) shell '(cd $(CFG_ADB_TEST_DIR); LD_LIBRARY_PATH=. \
450450
./$$(notdir $$<) \
451451
--logfile $(CFG_ADB_TEST_DIR)/check-stage$(1)-T-$(2)-H-$(3)-$(4).log \
452-
$$(call CRATE_TEST_EXTRA_ARGS,$(1),$(2),$(3),$(4)))' \
452+
$$(call CRATE_TEST_EXTRA_ARGS,$(1),$(2),$(3),$(4)) $(TESTARGS))' \
453453
> tmp/check-stage$(1)-T-$(2)-H-$(3)-$(4).tmp
454-
@cat tmp/check-stage$(1)-T-$(2)-H-$(3)-$(4).tmp
455-
@touch tmp/check-stage$(1)-T-$(2)-H-$(3)-$(4).log
456-
@$(CFG_ADB) pull $(CFG_ADB_TEST_DIR)/check-stage$(1)-T-$(2)-H-$(3)-$(4).log tmp/
457-
@$(CFG_ADB) shell rm $(CFG_ADB_TEST_DIR)/check-stage$(1)-T-$(2)-H-$(3)-$(4).log
458-
@$(CFG_ADB) pull $(CFG_ADB_TEST_DIR)/$$(call TEST_RATCHET_FILE,$(1),$(2),$(3),$(4)) tmp/
454+
$$(Q)cat tmp/check-stage$(1)-T-$(2)-H-$(3)-$(4).tmp
455+
$$(Q)touch tmp/check-stage$(1)-T-$(2)-H-$(3)-$(4).log
456+
$$(Q)$(CFG_ADB) pull $(CFG_ADB_TEST_DIR)/check-stage$(1)-T-$(2)-H-$(3)-$(4).log tmp/
457+
$$(Q)$(CFG_ADB) shell rm $(CFG_ADB_TEST_DIR)/check-stage$(1)-T-$(2)-H-$(3)-$(4).log
458+
$$(Q)$(CFG_ADB) pull $(CFG_ADB_TEST_DIR)/$$(call TEST_RATCHET_FILE,$(1),$(2),$(3),$(4)) tmp/
459459
@if grep -q "result: ok" tmp/check-stage$(1)-T-$(2)-H-$(3)-$(4).tmp; \
460460
then \
461461
rm tmp/check-stage$(1)-T-$(2)-H-$(3)-$(4).tmp; \

src/libstd/io/net/tcp.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ mod test {
136136
use io::*;
137137
use prelude::*;
138138

139+
// FIXME #11530 this fails on android because tests are run as root
139140
iotest!(fn bind_error() {
140141
let mut called = false;
141142
io_error::cond.trap(|e| {
@@ -147,7 +148,7 @@ mod test {
147148
assert!(listener.is_none());
148149
});
149150
assert!(called);
150-
} #[ignore(cfg(windows))])
151+
} #[ignore(cfg(windows))] #[ignore(cfg(target_os = "android"))])
151152

152153
iotest!(fn connect_error() {
153154
let mut called = false;

src/libstd/io/net/udp.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ mod test {
9999
use super::*;
100100
use io::net::ip::{SocketAddr};
101101

102+
// FIXME #11530 this fails on android because tests are run as root
102103
iotest!(fn bind_error() {
103104
let mut called = false;
104105
io_error::cond.trap(|e| {
@@ -110,7 +111,7 @@ mod test {
110111
assert!(socket.is_none());
111112
});
112113
assert!(called);
113-
} #[ignore(cfg(windows))])
114+
} #[ignore(cfg(windows))] #[ignore(cfg(target_os = "android"))])
114115

115116
iotest!(fn socket_smoke_test_ip4() {
116117
let server_ip = next_test_ip4();

0 commit comments

Comments
 (0)