Skip to content

Convert I/O tests to use run_in_mt_newsched_task #8999

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions src/libstd/rt/io/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ impl Seek for FileStream {
}

fn file_test_smoke_test_impl() {
do run_in_newsched_task {
do run_in_mt_newsched_task {
let message = "it's alright. have a good time";
let filename = &Path("./tmp/file_rt_io_file_test.txt");
{
Expand Down Expand Up @@ -174,7 +174,7 @@ fn file_test_io_smoke_test() {
}

fn file_test_invalid_path_opened_without_create_should_raise_condition_impl() {
do run_in_newsched_task {
do run_in_mt_newsched_task {
let filename = &Path("./tmp/file_that_does_not_exist.txt");
let mut called = false;
do io_error::cond.trap(|_| {
Expand All @@ -192,7 +192,7 @@ fn file_test_io_invalid_path_opened_without_create_should_raise_condition() {
}

fn file_test_unlinking_invalid_path_should_raise_condition_impl() {
do run_in_newsched_task {
do run_in_mt_newsched_task {
let filename = &Path("./tmp/file_another_file_that_does_not_exist.txt");
let mut called = false;
do io_error::cond.trap(|_| {
Expand All @@ -209,7 +209,7 @@ fn file_test_iounlinking_invalid_path_should_raise_condition() {
}

fn file_test_io_non_positional_read_impl() {
do run_in_newsched_task {
do run_in_mt_newsched_task {
use str;
let message = "ten-four";
let mut read_mem = [0, .. 8];
Expand Down Expand Up @@ -242,7 +242,7 @@ fn file_test_io_non_positional_read() {
}

fn file_test_io_seeking_impl() {
do run_in_newsched_task {
do run_in_mt_newsched_task {
use str;
let message = "ten-four";
let mut read_mem = [0, .. 4];
Expand Down Expand Up @@ -276,7 +276,7 @@ fn file_test_io_seek_and_tell_smoke_test() {

fn file_test_io_seek_and_write_impl() {
use io;
do run_in_newsched_task {
do run_in_mt_newsched_task {
use str;
let initial_msg = "food-is-yummy";
let overwrite_msg = "-the-bar!!";
Expand Down Expand Up @@ -307,7 +307,7 @@ fn file_test_io_seek_and_write() {
}

fn file_test_io_seek_shakedown_impl() {
do run_in_newsched_task {
do run_in_mt_newsched_task {
use str; // 01234567890123
let initial_msg = "qwer-asdf-zxcv";
let chunk_one = "qwer";
Expand Down
Loading