Skip to content

Commit 0a783ac

Browse files
committed
Repair some run-make tests on cross-compile
1 parent 4ec4d0e commit 0a783ac

File tree

39 files changed

+88
-30
lines changed

39 files changed

+88
-30
lines changed

tests/run-make/doctests-merge/rmake.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
//@ needs-target-std
1+
//@ ignore-cross-compile (needs to run doctests)
2+
23
use std::path::Path;
34

45
use run_make_support::{cwd, diff, rustc, rustdoc};

tests/run-make/doctests-runtool/rmake.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
//@ needs-target-std
2-
//
1+
//@ ignore-cross-compile (needs to run host tool binary)
2+
33
// Tests behavior of rustdoc `--test-runtool`.
44

55
use std::path::PathBuf;

tests/run-make/embed-metadata/rmake.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//@ needs-target-std
2-
//
2+
//@ needs-crate-type: dylib
3+
34
// Tests the -Zembed-metadata compiler flag.
45
// Tracking issue: https://github.com/rust-lang/rust/issues/139165
56

tests/run-make/embed-source-dwarf/rmake.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//@ needs-target-std
22
//@ ignore-windows
33
//@ ignore-apple
4+
//@ ignore-wasm (`object` doesn't handle wasm object files)
45

56
// This test should be replaced with one in tests/debuginfo once we can easily
67
// tell via GDB or LLDB if debuginfo contains source code. Cheap tricks in LLDB

tests/run-make/emit-shared-files/rmake.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@
55
// `all-shared` should only emit files that can be shared between crates.
66
// See https://github.com/rust-lang/rust/pull/83478
77

8+
//@ needs-target-std
9+
810
use run_make_support::{has_extension, has_prefix, path, rustdoc, shallow_find_files};
911

1012
fn main() {

tests/run-make/emit-stack-sizes/rmake.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
// See https://github.com/rust-lang/rust/pull/51946
88

99
//@ needs-target-std
10-
//@ ignore-windows
11-
//@ ignore-apple
10+
//@ only-elf
1211
// Reason: this feature only works when the output object format is ELF.
1312
// This won't be the case on Windows/OSX - for example, OSX produces a Mach-O binary.
1413

tests/run-make/env-dep-info/rmake.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//@ needs-target-std
2-
//
2+
//@ needs-crate-type: proc-macro
3+
34
// Inside dep-info emit files, #71858 made it so all accessed environment
45
// variables are usefully printed. This test checks that this feature works
56
// as intended by checking if the environment variables used in compilation

tests/run-make/export/disambiguator/rmake.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
//@ needs-target-std
2+
3+
// NOTE: `sdylib`'s platform support is basically just `dylib`'s platform support.
4+
//@ needs-crate-type: dylib
5+
26
use run_make_support::rustc;
37

48
fn main() {

tests/run-make/export/extern-opt/rmake.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
//@ needs-target-std
2+
3+
// NOTE: `sdylib`'s platform support is basically that of `dylib`.
4+
//@ needs-crate-type: dylib
5+
26
use run_make_support::{dynamic_lib_name, rustc};
37

48
fn main() {

tests/run-make/export/simple/rmake.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
//@ needs-target-std
2+
3+
// NOTE: `sdylib`'s platform support is basically that of `dylib`.
4+
//@ needs-crate-type: dylib
5+
26
use run_make_support::rustc;
37

48
fn main() {

0 commit comments

Comments
 (0)