Skip to content

Commit d1a146b

Browse files
committed
tests: Skip supported-crate-types test on musl hosts
This test depends on the target-specific behavior of crt-static for musl targets. However, running the testsuite on a musl host requires setting `crt-static` to `false`, as it wouldn't otherwise be possible to build rustc. This in turn will enable `-Ctarget-feature=-crt-static` for all tests, mismatching the expected `+crt-static` for the musl target tested in this testcase. Since this test specifically tests the default value of `crt-static` for the musl target, ignoring it entirely makes more sense than manually setting `-Ctarget-feature=+crt-static` here, but both would be valid approaches. Signed-off-by: Jens Reidel <[email protected]>
1 parent 9cd918b commit d1a146b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/ui/print-request/supported-crate-types.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88

99
//@ check-pass
1010

11+
// FIXME: musl targets are currently statically linked, but running on a musl host
12+
// requires dynamic linkage, which in turn changes the supported crate types for
13+
// x86_64-unknown-linux-musl.
14+
//@ ignore-musl
15+
1116
//@ revisions: wasm musl linux
1217

1318
//@[wasm] compile-flags: --target=wasm32-unknown-unknown --print=supported-crate-types -Zunstable-options

0 commit comments

Comments
 (0)