Skip to content

Commit 5b2e664

Browse files
committed
Repair some run-make tests on cross-compile
1 parent 464c5c7 commit 5b2e664

File tree

39 files changed

+108
-16
lines changed

39 files changed

+108
-16
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//@ ignore-cross-compile (needs to run doctests)
2+
13
use std::path::Path;
24

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

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

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

35
use std::path::PathBuf;

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//@ needs-target-std
2+
//@ needs-crate-type: dylib
3+
14
// Tests the -Zembed-metadata compiler flag.
25
// Tracking issue: https://github.com/rust-lang/rust/issues/139165
36

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//@ ignore-windows
22
//@ ignore-apple
3+
//@ ignore-wasm (`object` doesn't handle wasm object files)
34

45
// This test should be replaced with one in tests/debuginfo once we can easily
56
// 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: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
// this diagnostics information should be located.
77
// See https://github.com/rust-lang/rust/pull/51946
88

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

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

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

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

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

38
fn main() {

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

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

38
fn main() {
49
rustc()

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

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

38
fn main() {

0 commit comments

Comments
 (0)