Skip to content

Commit 9271549

Browse files
committed
---
yaml --- r: 130255 b: refs/heads/auto c: b090905 h: refs/heads/master i: 130253: 6d3103c 130251: c33729c 130247: a957d4f 130239: 2815b4b v: v3
1 parent 9b37e9c commit 9271549

File tree

4 files changed

+13
-20
lines changed

4 files changed

+13
-20
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0
1313
refs/tags/release-0.3.1: 495bae036dfe5ec6ceafd3312b4dca48741e845b
1414
refs/tags/release-0.4: e828ea2080499553b97dfe33b3f4d472b4562ad7
1515
refs/tags/release-0.5: 7e3bcfbf21278251ee936ad53e92e9b719702d73
16-
refs/heads/auto: f4aafd67137d0ea01a317311ca804f73543bc909
16+
refs/heads/auto: b090905b1750983bf41094e7a940a333324e3e10
1717
refs/heads/servo: af82457af293e2a842ba6b7759b70288da276167
1818
refs/tags/release-0.6: b4ebcfa1812664df5e142f0134a5faea3918544c
1919
refs/tags/0.1: b19db808c2793fe2976759b85a355c3ad8c8b336

branches/auto/src/test/debuginfo/gdb-pretty-struct-and-enums-pre-gdb-7-7.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
// older versions of GDB too. A more extensive test can be found in
1313
// gdb-pretty-struct-and-enums.rs
1414

15+
// ignore-test FIXME(#16919)
1516
// ignore-tidy-linelength
1617
// ignore-lldb
1718
// ignore-android: FIXME(#10381)

branches/auto/src/test/debuginfo/gdb-pretty-struct-and-enums.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
// ignore-test FIXME(#16919)
1112
// ignore-tidy-linelength
1213
// ignore-lldb
1314
// ignore-android: FIXME(#10381)

branches/auto/src/test/run-pass/tcp-accept-stress.rs

Lines changed: 10 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,6 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
// ignore-macos osx really doesn't like cycling through large numbers of
12-
// sockets as calls to connect() will start returning EADDRNOTAVAIL
13-
// quite quickly and it takes a few seconds for the sockets to get
14-
// recycled.
15-
1611
#![feature(phase)]
1712

1813
#[phase(plugin)]
@@ -25,7 +20,7 @@ use std::task::TaskBuilder;
2520
use native::NativeTaskBuilder;
2621

2722
static N: uint = 8;
28-
static M: uint = 20;
23+
static M: uint = 100;
2924

3025
green_start!(main)
3126

@@ -45,12 +40,11 @@ fn test() {
4540
let mut a = l.listen().unwrap();
4641
let cnt = Arc::new(atomic::AtomicUint::new(0));
4742

48-
let (srv_tx, srv_rx) = channel();
49-
let (cli_tx, cli_rx) = channel();
43+
let (tx, rx) = channel();
5044
for _ in range(0, N) {
5145
let a = a.clone();
5246
let cnt = cnt.clone();
53-
let srv_tx = srv_tx.clone();
47+
let tx = tx.clone();
5448
spawn(proc() {
5549
let mut a = a;
5650
loop {
@@ -64,36 +58,33 @@ fn test() {
6458
Err(e) => fail!("{}", e),
6559
}
6660
}
67-
srv_tx.send(());
61+
tx.send(());
6862
});
6963
}
7064

7165
for _ in range(0, N) {
72-
let cli_tx = cli_tx.clone();
66+
let tx = tx.clone();
7367
spawn(proc() {
7468
for _ in range(0, M) {
7569
let _s = TcpStream::connect(addr.ip.to_string().as_slice(),
7670
addr.port).unwrap();
7771
}
78-
cli_tx.send(());
72+
tx.send(());
7973
});
8074
}
81-
drop((cli_tx, srv_tx));
75+
drop(tx);
8276

8377
// wait for senders
84-
if cli_rx.iter().take(N).count() != N {
85-
a.close_accept().unwrap();
86-
fail!("clients failed");
87-
}
78+
assert_eq!(rx.iter().take(N).count(), N);
8879

8980
// wait for one acceptor to die
90-
let _ = srv_rx.recv();
81+
let _ = rx.recv();
9182

9283
// Notify other receivers should die
9384
a.close_accept().unwrap();
9485

9586
// wait for receivers
96-
assert_eq!(srv_rx.iter().take(N - 1).count(), N - 1);
87+
assert_eq!(rx.iter().take(N - 1).count(), N - 1);
9788

9889
// Everything should have been accepted.
9990
assert_eq!(cnt.load(atomic::SeqCst), N * M);

0 commit comments

Comments
 (0)