Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit e9df22f

Browse files
committedSep 30, 2024
Auto merge of rust-lang#131036 - RalfJung:miri-sync, r=RalfJung
Miri subtree update r? `@ghost`
2 parents 4e91ced + 8c0adc6 commit e9df22f

File tree

128 files changed

+606
-479
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+606
-479
lines changed
 

‎src/tools/miri/cargo-miri/src/phases.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ use std::{env, thread};
88

99
use rustc_version::VersionMeta;
1010

11-
use crate::{setup::*, util::*};
11+
use crate::setup::*;
12+
use crate::util::*;
1213

1314
const CARGO_MIRI_HELP: &str = r"Runs binary crates and tests in Miri
1415
@@ -666,6 +667,8 @@ pub fn phase_runner(mut binary_args: impl Iterator<Item = String>, phase: Runner
666667
match phase {
667668
RunnerPhase::Rustdoc => {
668669
cmd.stdin(std::process::Stdio::piped());
670+
// the warning is wrong, we have a `wait` inside the `scope` closure.
671+
#[expect(clippy::zombie_processes)]
669672
let mut child = cmd.spawn().expect("failed to spawn process");
670673
let child_stdin = child.stdin.take().unwrap();
671674
// Write stdin in a background thread, as it may block.

‎src/tools/miri/ci/ci.sh

+10-10
Original file line numberDiff line numberDiff line change
@@ -148,18 +148,18 @@ case $HOST_TARGET in
148148
TEST_TARGET=arm-unknown-linux-gnueabi run_tests
149149
TEST_TARGET=s390x-unknown-linux-gnu run_tests # big-endian architecture of choice
150150
# Partially supported targets (tier 2)
151-
BASIC="empty_main integer vec string btreemap hello hashmap heap_alloc align" # ensures we have the basics: stdout/stderr, system allocator, randomness (for HashMap initialization)
152-
UNIX="panic/panic panic/unwind concurrency/simple atomic libc-mem libc-misc libc-random env num_cpus" # the things that are very similar across all Unixes, and hence easily supported there
153-
TEST_TARGET=x86_64-unknown-freebsd run_tests_minimal $BASIC $UNIX threadname pthread time fs
154-
TEST_TARGET=i686-unknown-freebsd run_tests_minimal $BASIC $UNIX threadname pthread time fs
155-
TEST_TARGET=x86_64-unknown-illumos run_tests_minimal $BASIC $UNIX thread sync available-parallelism time tls
156-
TEST_TARGET=x86_64-pc-solaris run_tests_minimal $BASIC $UNIX thread sync available-parallelism time tls
157-
TEST_TARGET=aarch64-linux-android run_tests_minimal $BASIC $UNIX pthread --skip threadname --skip pthread_cond_timedwait
158-
TEST_TARGET=wasm32-wasip2 run_tests_minimal empty_main wasm heap_alloc libc-mem
159-
TEST_TARGET=wasm32-unknown-unknown run_tests_minimal empty_main wasm
151+
BASIC="empty_main integer heap_alloc libc-mem vec string btreemap" # ensures we have the basics: pre-main code, system allocator
152+
UNIX="hello panic/panic panic/unwind concurrency/simple atomic libc-mem libc-misc libc-random env num_cpus" # the things that are very similar across all Unixes, and hence easily supported there
153+
TEST_TARGET=x86_64-unknown-freebsd run_tests_minimal $BASIC $UNIX time hashmap random threadname pthread fs
154+
TEST_TARGET=i686-unknown-freebsd run_tests_minimal $BASIC $UNIX time hashmap random threadname pthread fs
155+
TEST_TARGET=x86_64-unknown-illumos run_tests_minimal $BASIC $UNIX time hashmap random thread sync available-parallelism tls
156+
TEST_TARGET=x86_64-pc-solaris run_tests_minimal $BASIC $UNIX time hashmap random thread sync available-parallelism tls
157+
TEST_TARGET=aarch64-linux-android run_tests_minimal $BASIC $UNIX time hashmap pthread --skip threadname
158+
TEST_TARGET=wasm32-wasip2 run_tests_minimal $BASIC wasm
159+
TEST_TARGET=wasm32-unknown-unknown run_tests_minimal no_std empty_main wasm # this target doesn't really have std
160160
TEST_TARGET=thumbv7em-none-eabihf run_tests_minimal no_std
161161
# Custom target JSON file
162-
TEST_TARGET=tests/avr.json MIRI_NO_STD=1 run_tests_minimal no_std
162+
TEST_TARGET=tests/x86_64-unknown-kernel.json MIRI_NO_STD=1 run_tests_minimal no_std
163163
;;
164164
i686-pc-windows-msvc)
165165
# Host
There was a problem loading the remainder of the diff.

0 commit comments

Comments
 (0)
Failed to load comments.