Skip to content

Commit 1426114

Browse files
committed
Run all run(-dep) tests natively, too
1 parent d28fb80 commit 1426114

Some content is hidden

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

63 files changed

+242
-50
lines changed

tests/pass-dep/libc/libc-mem.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
//@only-miri: testing specific alignment shenanigans
12
#![feature(strict_provenance, pointer_is_aligned_to)]
23
use std::{mem, ptr, slice};
34

tests/pass-dep/num_cpus.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//@compile-flags: -Zmiri-disable-isolation
2+
//@only-miri: fake cpu number
23

34
fn main() {
45
assert_eq!(num_cpus::get(), 1);

tests/pass-dep/page_size_override.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//@compile-flags: -Zmiri-force-page-size=8
2+
//@only-miri: fake page size
23

34
fn main() {
45
let page_size = page_size::get();

tests/pass/address-reuse.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
//! Check that we do sometimes reuse addresses.
22
use std::collections::HashSet;
3+
//@only-miri: global allocators behave differently
34

45
fn main() {
56
let count = 100;

tests/pass/adjacent-allocs.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//@compile-flags: -Zmiri-permissive-provenance
2+
//@only-miri: CI found nonadjacent stack variables
23

34
fn ensure_allocs_can_be_adjacent() {
45
for _ in 0..512 {

tests/pass/alloc-access-tracking.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
//@compile-flags: -Zmiri-track-alloc-id=21 -Zmiri-track-alloc-accesses -Cpanic=abort
44
//@normalize-stderr-test: "id 21" -> "id $$ALLOC"
55
//@only-target: linux # alloc IDs differ between OSes (due to extern static allocations)
6+
//@only-miri: using internal APIs
67

78
extern "Rust" {
89
fn miri_alloc(size: usize, align: usize) -> *mut u8;

tests/pass/atomic.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
//@revisions: stack tree
22
//@[tree]compile-flags: -Zmiri-tree-borrows
33
//@compile-flags: -Zmiri-strict-provenance
4+
//@only-miri: testing weak memory behaviour
45

56
#![feature(strict_provenance, strict_provenance_atomic_ptr)]
67
// FIXME(static_mut_refs): Do not allow `static_mut_refs` lint

tests/pass/backtrace/backtrace-api-v0.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//@normalize-stderr-test: "::<.*>" -> ""
2+
//@only-miri: backtraces differ too much
23

34
#[inline(never)]
45
fn func_a() -> Box<[*mut ()]> {
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
tests/pass/backtrace/backtrace-api-v0.rs:24:14 (func_d)
2-
tests/pass/backtrace/backtrace-api-v0.rs:14:9 (func_c)
3-
tests/pass/backtrace/backtrace-api-v0.rs:9:5 (func_b::<u8>)
4-
tests/pass/backtrace/backtrace-api-v0.rs:5:5 (func_a)
5-
tests/pass/backtrace/backtrace-api-v0.rs:29:18 (main)
1+
tests/pass/backtrace/backtrace-api-v0.rs:25:14 (func_d)
2+
tests/pass/backtrace/backtrace-api-v0.rs:15:9 (func_c)
3+
tests/pass/backtrace/backtrace-api-v0.rs:10:5 (func_b::<u8>)
4+
tests/pass/backtrace/backtrace-api-v0.rs:6:5 (func_a)
5+
tests/pass/backtrace/backtrace-api-v0.rs:30:18 (main)

tests/pass/backtrace/backtrace-api-v1.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
//@normalize-stderr-test: "::<.*>" -> ""
2+
//@only-miri: backtraces differ too much
23

34
#[inline(never)]
45
fn func_a() -> Box<[*mut ()]> {

0 commit comments

Comments
 (0)