tests: Remove crate_map from start.

This commit is contained in:
Luqman Aden 2013-09-18 19:18:53 -04:00
parent 133200a6e2
commit d3309eb432
3 changed files with 26 additions and 1 deletions

View file

@ -11,6 +11,12 @@
//xfail-fast
#[start]
#[cfg(stage0)]
fn start(_argc: int, _argv: **u8, _crate_map: *u8) -> int {
return 0;
}
#[start]
#[cfg(not(stage0))]
fn start(_argc: int, _argv: **u8) -> int {
return 0;
}

View file

@ -13,8 +13,16 @@
// A simple test of starting the runtime manually
#[start]
#[cfg(stage0)]
fn start(argc: int, argv: **u8, crate_map: *u8) -> int {
do std::rt::start(argc, argv, crate_map) {
info!("creating my own runtime is joy");
}
}
#[start]
#[cfg(not(stage0))]
fn start(argc: int, argv: **u8) -> int {
do std::rt::start(argc, argv) {
info!("creating my own runtime is joy");
}
}

View file

@ -11,6 +11,7 @@
// xfail-fast
#[start]
#[cfg(stage0)]
fn start(argc: int, argv: **u8, crate_map: *u8) -> int {
do std::rt::start_on_main_thread(argc, argv, crate_map) {
info!("running on main thread");
@ -18,4 +19,14 @@ fn start(argc: int, argv: **u8, crate_map: *u8) -> int {
info!("running on another thread");
}
}
}
}
#[start]
#[cfg(not(stage0))]
fn start(argc: int, argv: **u8) -> int {
do std::rt::start_on_main_thread(argc, argv) {
info!("running on main thread");
do spawn {
info!("running on another thread");
}
}
}