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
+2 -2
View File
@@ -116,8 +116,8 @@ fn h(_i: int) { }
#[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() {
+1 -1
View File
@@ -1,6 +1,6 @@
#[abi = "cdecl"]
extern mod rustrt {
fn get_task_id();
fn get_task_id() -> libc::intptr_t;
}
fn main() {
+5 -2
View File
@@ -9,7 +9,10 @@
#[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) });
}
+1 -1
View File
@@ -11,7 +11,7 @@
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();
}