about summary refs log tree commit diff
path: root/src/lib/test.rs
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2011-08-11 18:49:36 -0700
committerBrian Anderson <banderson@mozilla.com>2011-08-12 12:08:27 -0700
commit82b1e3f5cc0d0fec0f7fbab0f9b8766ce732c792 (patch)
tree63ceb8283b98e964a00fd3357e4b7906c0de6ef9 /src/lib/test.rs
parentc0846525e8329bd39125559f08fb378a461b7957 (diff)
downloadrust-82b1e3f5cc0d0fec0f7fbab0f9b8766ce732c792.tar.gz
rust-82b1e3f5cc0d0fec0f7fbab0f9b8766ce732c792.zip
Convert all uses of std::io to std::ioivec
Diffstat (limited to 'src/lib/test.rs')
-rw-r--r--src/lib/test.rs12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/test.rs b/src/lib/test.rs
index 70f9580bf73..04472088789 100644
--- a/src/lib/test.rs
+++ b/src/lib/test.rs
@@ -106,7 +106,7 @@ fn run_tests_console_(opts: &test_opts, tests: &[test_desc],
                       to_task: &test_to_task) -> bool {
 
     type test_state = @{
-        out: io::writer,
+        out: ioivec::writer,
         use_color: bool,
         mutable total: uint,
         mutable passed: uint,
@@ -148,7 +148,7 @@ fn run_tests_console_(opts: &test_opts, tests: &[test_desc],
     }
 
     let st = @{
-        out: io::stdout(),
+        out: ioivec::stdout(),
         use_color: use_color(),
         mutable total: 0u,
         mutable passed: 0u,
@@ -181,19 +181,19 @@ fn run_tests_console_(opts: &test_opts, tests: &[test_desc],
 
     ret success;
 
-    fn write_ok(out: &io::writer, use_color: bool) {
+    fn write_ok(out: &ioivec::writer, use_color: bool) {
         write_pretty(out, "ok", term::color_green, use_color);
     }
 
-    fn write_failed(out: &io::writer, use_color: bool) {
+    fn write_failed(out: &ioivec::writer, use_color: bool) {
         write_pretty(out, "FAILED", term::color_red, use_color);
     }
 
-    fn write_ignored(out: &io::writer, use_color: bool) {
+    fn write_ignored(out: &ioivec::writer, use_color: bool) {
         write_pretty(out, "ignored", term::color_yellow, use_color);
     }
 
-    fn write_pretty(out: &io::writer, word: &str, color: u8,
+    fn write_pretty(out: &ioivec::writer, word: &str, color: u8,
                     use_color: bool) {
         if use_color && term::color_supported() {
             term::fg(out.get_buf_writer(), color);