about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJed Davis <jld@panix.com>2013-02-17 14:06:46 -0800
committerJed Davis <jld@panix.com>2013-02-17 14:32:46 -0800
commite8732bde5ebc29ea69cc7d2c1637490d26424b2d (patch)
treecacea800565993187dbae7542d8bbe9e3f06a9b9
parenta6945f2a45d56ef692cd8f2955dcef4e4c10d50a (diff)
downloadrust-e8732bde5ebc29ea69cc7d2c1637490d26424b2d.tar.gz
rust-e8732bde5ebc29ea69cc7d2c1637490d26424b2d.zip
Tests shouldn't read from stdin.
As far as I can tell, the only reason run-pass/type-use-i1-versus-i8
is trying to do a read is because that code was left over from the
original program the issue was found in.  When that test is run as
part of check-fast, and apparently only in that case, the test blocks
indefinitely, which is bad.
-rw-r--r--src/test/run-pass/type-use-i1-versus-i8.rs8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/test/run-pass/type-use-i1-versus-i8.rs b/src/test/run-pass/type-use-i1-versus-i8.rs
index 5f0414cdb78..5f3c60c9ba5 100644
--- a/src/test/run-pass/type-use-i1-versus-i8.rs
+++ b/src/test/run-pass/type-use-i1-versus-i8.rs
@@ -1,4 +1,4 @@
-// Copyright 2012 The Rust Project Developers. See the COPYRIGHT
+// Copyright 2012-2013 The Rust Project Developers. See the COPYRIGHT
 // file at the top-level directory of this distribution and at
 // http://rust-lang.org/COPYRIGHT.
 //
@@ -8,14 +8,8 @@
 // option. This file may not be copied, modified, or distributed
 // except according to those terms.
 
-use io::ReaderUtil;
 pub fn main() {
     let mut x: bool = false;
     // this line breaks it
     vec::rusti::move_val_init(&mut x, false);
-
-    let input = io::stdin();
-    let line = input.read_line(); // use core's io again
-
-    io::println(fmt!("got %?", line));
 }