Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore big-endian targets in UI tests with raw bytes #102379

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Ignore big-endian targets in UI tests with raw bytes
Some `const` UI tests have raw bytes in their output that are sensitive
to the target endianness. We could consider something like the directive
`stderr-per-bitwidth` for endian, but we only ever test little-endian in
CI, so that would likely bit rot. For now, just ignore big-endian.
  • Loading branch information
cuviper committed Sep 28, 2022
commit 54d1f042e66a92ecc1c18d5fb7c94b1e38e4dcff
1 change: 1 addition & 0 deletions src/test/ui/const-ptr/forbidden_slices.rs
Original file line number Diff line number Diff line change
@@ -1,3 1,4 @@
// ignore-endian-big
// stderr-per-bitwidth
// normalize-stderr-test "alloc[0-9] " -> "ALLOC_ID"
// normalize-stderr-test "a[0-9] \ 0x" -> "A_ID 0x"
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/consts/const-eval/ub-enum.rs
Original file line number Diff line number Diff line change
@@ -1,3 1,4 @@
// ignore-endian-big
// stderr-per-bitwidth
#![feature(never_type)]
#![allow(invalid_value)]
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/consts/const-eval/ub-nonnull.rs
Original file line number Diff line number Diff line change
@@ -1,3 1,4 @@
// ignore-endian-big
// stderr-per-bitwidth
#![feature(rustc_attrs)]
#![allow(const_err, invalid_value)] // make sure we cannot allow away the errors tested here
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/consts/const-eval/ub-ref-ptr.rs
Original file line number Diff line number Diff line change
@@ -1,3 1,4 @@
// ignore-endian-big
// ignore-tidy-linelength
// stderr-per-bitwidth
#![allow(invalid_value)]
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/consts/const-eval/ub-uninhabit.rs
Original file line number Diff line number Diff line change
@@ -1,3 1,4 @@
// ignore-endian-big
// stderr-per-bitwidth
#![allow(const_err)] // make sure we cannot allow away the errors tested here

Expand Down
1 change: 1 addition & 0 deletions src/test/ui/consts/const-eval/ub-wide-ptr.rs
Original file line number Diff line number Diff line change
@@ -1,4 1,5 @@
// stderr-per-bitwidth
// ignore-endian-big
// ignore-tidy-linelength
#![allow(unused)]

Expand Down
1 change: 1 addition & 0 deletions src/test/ui/consts/issue-83182.rs
Original file line number Diff line number Diff line change
@@ -1,3 1,4 @@
// ignore-endian-big
// stderr-per-bitwidth

use std::mem;
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/consts/std/alloc.rs
Original file line number Diff line number Diff line change
@@ -1,5 1,6 @@
// stderr-per-bitwidth
// ignore-debug (the debug assertions change the error)
// ignore-endian-big
use std::alloc::Layout;

// ok
Expand Down
1 change: 1 addition & 0 deletions src/test/ui/consts/validate_never_arrays.rs
Original file line number Diff line number Diff line change
@@ -1,3 1,4 @@
// ignore-endian-big
// stderr-per-bitwidth
#![feature(never_type)]

Expand Down