Skip to content

Commit 28f4f65

Browse files
committed
Fix a typo in a rt::io::signal test
It was pretty much a miracle that these tests were ever passing. They would never have passed in the single threaded case because only one sigint in the tests is ever generated, but when run in parallel two sigints will be generated.
1 parent 950add4 commit 28f4f65

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libstd/rt/io/signal.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ mod test {
183183
Interrupt => (),
184184
s => fail!("Expected Interrupt, got {:?}", s),
185185
}
186-
match s1.port.recv() {
186+
match s2.port.recv() {
187187
Interrupt => (),
188188
s => fail!("Expected Interrupt, got {:?}", s),
189189
}

0 commit comments

Comments
 (0)