Skip to content

Commit

Permalink
ignore/fix layout-sensitive tests
Browse files Browse the repository at this point in the history
  • Loading branch information
the8472 committed Aug 31, 2024
1 parent 121e9f4 commit f3bc08a
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions tests/codegen/issues/issue-86106.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
//@ only-64bit llvm appears to use stores instead of memset on 32bit
//@ compile-flags: -C opt-level=3 -Z merge-functions=disabled
//@ needs-deterministic-layouts

// The below two functions ensure that both `String::new()` and `"".to_string()`
// produce the identical code.
Expand Down
1 change: 1 addition & 0 deletions tests/codegen/mem-replace-big-type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

//@ compile-flags: -C no-prepopulate-passes -Zinline-mir=no
//@ ignore-debug: precondition checks in ptr::read make them a bad candidate for MIR inlining
//@ needs-deterministic-layouts

#![crate_type = "lib"]

Expand Down
1 change: 1 addition & 0 deletions tests/codegen/slice-iter-nonnull.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//@ compile-flags: -O
//@ needs-deterministic-layouts
#![crate_type = "lib"]
#![feature(exact_size_is_empty)]

Expand Down
1 change: 1 addition & 0 deletions tests/codegen/vecdeque-drain.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Check that draining at the front or back doesn't copy memory.

//@ compile-flags: -O
//@ needs-deterministic-layouts
//@ ignore-debug: FIXME: checks for call detect scoped noalias metadata

#![crate_type = "lib"]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//@needs-deterministic-layouts
// Verify that we do not ICE when printing an invalid constant.
// EMIT_MIR_FOR_EACH_BIT_WIDTH
// EMIT_MIR_FOR_EACH_PANIC_STRATEGY
Expand Down
3 changes: 3 additions & 0 deletions tests/ui/stats/hir-stats.rs
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
//@ check-pass
//@ compile-flags: -Zhir-stats
//@ only-x86_64
// layout randomization affects the hir stat output
//@ needs-deterministic-layouts

// Type layouts sometimes change. When that happens, until the next bootstrap
// bump occurs, stage1 and stage2 will give different outputs for this test.
// Add an `ignore-stage1` comment marker to work around that problem during
// that time.


// The aim here is to include at least one of every different type of top-level
// AST/HIR node reported by `-Zhir-stats`.

Expand Down
1 change: 1 addition & 0 deletions tests/ui/structs-enums/type-sizes.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
//@ run-pass
//@ needs-deterministic-layouts

#![allow(non_camel_case_types)]
#![allow(dead_code)]
Expand Down

0 comments on commit f3bc08a

Please sign in to comment.