From 7d85546721cf954606a2fe25a63e9fb9e8a256ad Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Mon, 24 Feb 2014 21:53:46 -0800 Subject: [PATCH] Test fixes from rollup --- src/test/run-make/unicode-input/multiple_files.rs | 6 +++--- src/test/run-make/unicode-input/span_length.rs | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/test/run-make/unicode-input/multiple_files.rs b/src/test/run-make/unicode-input/multiple_files.rs index 68bec1d215a..80371aa9840 100644 --- a/src/test/run-make/unicode-input/multiple_files.rs +++ b/src/test/run-make/unicode-input/multiple_files.rs @@ -8,9 +8,9 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -use std::{char, os, run, str}; +use std::{char, os, str}; use std::rand::{task_rng, Rng}; -use std::io::File; +use std::io::{File, Process}; // creates unicode_input_multiple_files_{main,chars}.rs, where the // former imports the latter. `_chars` just contains an indentifier @@ -55,7 +55,7 @@ fn main() { // rustc is passed to us with --out-dir and -L etc., so we // can't exec it directly - let result = run::process_output("sh", [~"-c", rustc + " " + main_file_str]).unwrap(); + let result = Process::output("sh", [~"-c", rustc + " " + main_file_str]).unwrap(); let err = str::from_utf8_lossy(result.error); // positive test so that this test will be updated when the diff --git a/src/test/run-make/unicode-input/span_length.rs b/src/test/run-make/unicode-input/span_length.rs index c437b70baf3..3227f672bcd 100644 --- a/src/test/run-make/unicode-input/span_length.rs +++ b/src/test/run-make/unicode-input/span_length.rs @@ -8,9 +8,9 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -use std::{char, os, run, str}; +use std::{char, os, str}; use std::rand::{task_rng, Rng}; -use std::io::File; +use std::io::{File, Process}; // creates a file with `fn main() { }` and checks the // compiler emits a span of the appropriate length (for the @@ -51,7 +51,7 @@ fn main() { // rustc is passed to us with --out-dir and -L etc., so we // can't exec it directly - let result = run::process_output("sh", [~"-c", rustc + " " + main_file_str]).unwrap(); + let result = Process::output("sh", [~"-c", rustc + " " + main_file_str]).unwrap(); let err = str::from_utf8_lossy(result.error);