rust/tests
Matthias Krüger 5172159dfd
Rollup merge of #149056 - fneddy:fix_s390_test_padding_overwrite, r=RalfJung
fix the fragment_in_dst_padding_gets_overwritten test on s390x

on s390x 128bit types have a smaller alignment then on x86[^1]. This leads to smaller structs (24 instead of 32 bytes) and therefore the write_unaligned will write outside of the structs boundary.

To fix the test, change the trailing u32 into a u8. This will generate 7 trailing padding bytes on s390x and 15 on x86_64. Also change the start of the garbage data so it will span over x,y and padding:

```
s390x:   XXXXXXXXXXXXXXXXY-------
x86_64:  XXXXXXXXXXXXXXXXY---------------
                      GGGGGGGG

```

[^1]: s390x ELF ABI Table 1.1, Page 12 https://github.com/IBM/s390x-abi
2025-11-20 11:15:54 +01:00
..
assembly-llvm Rollup merge of #147173 - androm3da:bcain/hexagon_qurt, r=davidtwco,tgross35 2025-11-20 11:15:51 +01:00
auxiliary Rollup merge of #147521 - sayantn:simd-const-intrinsics, r=madsmtm 2025-11-19 09:48:07 +01:00
codegen-llvm sess: default to v0 symbol mangling 2025-11-19 11:55:09 +00:00
codegen-units Document fmt::Arguments internal representation. 2025-11-12 12:48:39 +01:00
coverage Bless coverage tests. 2025-11-12 12:48:45 +01:00
coverage-run-rustdoc
crashes Replace OffsetOf by an actual sum. 2025-11-18 00:10:03 +00:00
debuginfo sess: default to v0 symbol mangling 2025-11-19 11:55:09 +00:00
incremental Bless tests. 2025-11-12 12:48:27 +01:00
mir-opt Replace OffsetOf by an actual sum. 2025-11-18 00:10:03 +00:00
pretty Document fmt::Arguments internal representation. 2025-11-12 12:48:39 +01:00
run-make Remove the "wasm32-bare" alias for wasm32-unknown-unknown 2025-11-17 14:11:07 +11:00
run-make-cargo Skip the panic-immediate-abort-works test when cross-compiling 2025-09-22 21:13:38 -04:00
rustdoc Add test for href of reexported enum variant 2025-11-18 12:23:32 +01:00
rustdoc-gui rustdoc-search: add test case for throbber 2025-10-07 12:59:58 -07:00
rustdoc-js Rollup merge of #147701 - lolbinarycat:rustdoc-search-alias-fix, r=GuillaumeGomez 2025-11-13 11:57:07 +11:00
rustdoc-js-std Add regression test for including derive macros in macro filtering 2025-10-27 16:00:32 +01:00
rustdoc-json Add tests for doc(attribute = "...") attribute 2025-08-28 15:56:30 +02:00
rustdoc-ui Rollup merge of #146495 - fmease:rustdoc-erase-doc-priv-items-attr, r=GuillaumeGomez 2025-11-11 21:09:33 +11:00
ui Rollup merge of #149056 - fneddy:fix_s390_test_padding_overwrite, r=RalfJung 2025-11-20 11:15:54 +01:00
ui-fulldeps When more than a single impl and less than 4 could apply, point at them 2025-10-31 20:44:01 +00:00
COMPILER_TESTS.md