finish fixing broken un-unsupervise windows tests

This commit is contained in:
Ben Blum 2012-07-17 22:10:52 -04:00
parent 4ee4a2ab31
commit 30d94fe9a2
4 changed files with 9 additions and 6 deletions

View file

@ -116,8 +116,8 @@ fn test_fn() {
#[abi = "cdecl"]
#[nolink]
extern mod test {
fn rust_get_sched_id();
fn get_task_id();
fn rust_get_sched_id() -> libc::intptr_t;
fn get_task_id() -> libc::intptr_t;
}
fn test_foreign_fn() {

View file

@ -1,6 +1,6 @@
#[abi = "cdecl"]
extern mod rustrt {
fn get_task_id();
fn get_task_id() -> libc::intptr_t;
}
fn main() {

View file

@ -9,7 +9,10 @@ import task;
#[abi = "cdecl"]
extern mod rustrt {
fn get_task_id();
fn get_task_id() -> libc::intptr_t;
}
fn main() { task::spawn(rustrt::get_task_id); }
fn main() {
let f: fn() -> libc::intptr_t = rustrt::get_task_id;
task::spawn(unsafe { unsafe::reinterpret_cast(f) });
}

View file

@ -11,7 +11,7 @@ extern mod rustrt {
fn rust_get_sched_id() -> libc::intptr_t;
fn last_os_error() -> ~str;
fn rust_getcwd() -> ~str;
fn get_task_id();
fn get_task_id() -> libc::intptr_t;
fn sched_threads();
fn rust_get_task();
}