Change all test/run-pass uses of rustrt::unsupervise() to something else

This commit is contained in:
Ben Blum 2012-07-17 21:18:45 -04:00
parent 73a24b8abb
commit 03cdc2476d
8 changed files with 15 additions and 22 deletions

View file

@ -116,13 +116,13 @@ fn test_fn() {
#[abi = "cdecl"]
#[nolink]
extern mod test {
fn unsupervise();
fn rust_get_sched_id();
fn get_task_id();
}
fn test_foreign_fn() {
assert test::unsupervise != test::get_task_id;
assert test::unsupervise == test::unsupervise;
assert test::rust_get_sched_id != test::get_task_id;
assert test::rust_get_sched_id == test::rust_get_sched_id;
}
class p {

View file

@ -1,8 +1,8 @@
#[abi = "cdecl"]
extern mod rustrt {
fn unsupervise();
fn get_task_id();
}
fn main() {
let _foo = rustrt::unsupervise;
let _foo = rustrt::get_task_id;
}

View file

@ -1,9 +1,9 @@
// ABI is cdecl by default
extern mod rustrt {
fn unsupervise();
fn get_task_id() -> int;
}
fn main() {
rustrt::unsupervise();
}
rustrt::get_task_id();
}

View file

@ -1,10 +1,3 @@
#[abi = "cdecl"]
extern mod rustrt {
fn unsupervise();
}
#[abi = "cdecl"]
#[nolink]
extern mod bar { }

View file

@ -1,7 +1,7 @@
#[link(name = "unsupervise")];
#[link(name = "get_task_id")];
extern mod rustrt {
fn unsupervise();
fn get_task_id() -> int;
}
fn main() { }

View file

@ -9,7 +9,7 @@ import task;
#[abi = "cdecl"]
extern mod rustrt {
fn unsupervise();
fn get_task_id();
}
fn main() { task::spawn(rustrt::unsupervise); }
fn main() { task::spawn(rustrt::get_task_id); }

View file

@ -163,7 +163,7 @@ mod test_foreign_items {
#[attr];
#[attr]
fn unsupervise();
fn get_task_id() -> int;
}
}

View file

@ -8,7 +8,7 @@ import std::rand;
extern mod rustrt {
fn debug_get_stk_seg() -> *u8;
fn unsupervise();
fn rust_get_sched_id() -> int;
fn last_os_error() -> ~str;
fn rust_getcwd() -> ~str;
fn get_task_id();
@ -16,7 +16,7 @@ extern mod rustrt {
fn rust_get_task();
}
fn calllink01() { rustrt::unsupervise(); }
fn calllink01() { rustrt::rust_get_sched_id(); }
fn calllink02() { rustrt::last_os_error(); }
fn calllink03() { rustrt::rust_getcwd(); }
fn calllink08() { rustrt::get_task_id(); }