mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-28 20:16:58 +03:00
finish fixing broken un-unsupervise windows tests
This commit is contained in:
@@ -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,6 +1,6 @@
|
||||
#[abi = "cdecl"]
|
||||
extern mod rustrt {
|
||||
fn get_task_id();
|
||||
fn get_task_id() -> libc::intptr_t;
|
||||
}
|
||||
|
||||
fn main() {
|
||||
|
||||
@@ -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) });
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user