Skip to content

Commit d3309eb

Browse files
committed
tests: Remove crate_map from start.
1 parent 133200a commit d3309eb

File tree

3 files changed

+26
-1
lines changed

3 files changed

+26
-1
lines changed

src/test/run-pass/attr-start.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@
1111
//xfail-fast
1212

1313
#[start]
14+
#[cfg(stage0)]
1415
fn start(_argc: int, _argv: **u8, _crate_map: *u8) -> int {
1516
return 0;
1617
}
18+
#[start]
19+
#[cfg(not(stage0))]
20+
fn start(_argc: int, _argv: **u8) -> int {
21+
return 0;
22+
}

src/test/run-pass/core-rt-smoke.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,16 @@
1313
// A simple test of starting the runtime manually
1414

1515
#[start]
16+
#[cfg(stage0)]
1617
fn start(argc: int, argv: **u8, crate_map: *u8) -> int {
1718
do std::rt::start(argc, argv, crate_map) {
1819
info!("creating my own runtime is joy");
1920
}
2021
}
22+
#[start]
23+
#[cfg(not(stage0))]
24+
fn start(argc: int, argv: **u8) -> int {
25+
do std::rt::start(argc, argv) {
26+
info!("creating my own runtime is joy");
27+
}
28+
}

src/test/run-pass/rt-start-main-thread.rs

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,22 @@
1111
// xfail-fast
1212

1313
#[start]
14+
#[cfg(stage0)]
1415
fn start(argc: int, argv: **u8, crate_map: *u8) -> int {
1516
do std::rt::start_on_main_thread(argc, argv, crate_map) {
1617
info!("running on main thread");
1718
do spawn {
1819
info!("running on another thread");
1920
}
2021
}
21-
}
22+
}
23+
#[start]
24+
#[cfg(not(stage0))]
25+
fn start(argc: int, argv: **u8) -> int {
26+
do std::rt::start_on_main_thread(argc, argv) {
27+
info!("running on main thread");
28+
do spawn {
29+
info!("running on another thread");
30+
}
31+
}
32+
}

0 commit comments

Comments
 (0)