Skip to content

Commit ac4b3a3

Browse files
committed
---
yaml --- r: 130137 b: refs/heads/master c: b090905 h: refs/heads/master i: 130135: 4376185 v: v3
1 parent 3df5d5c commit ac4b3a3

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
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: f4aafd67137d0ea01a317311ca804f73543bc909
2+
refs/heads/master: b090905b1750983bf41094e7a940a333324e3e10
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 67b97ab6d2b7de9b69fd97dc171fcf8feec932ff
55
refs/heads/try: 28d5878c1f0465c11c8e7a3085008b0c592d48d0

trunk/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)

trunk/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)

trunk/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)