]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #106047 - uweigand:s390x-test-bigendian-ui, r=oli-obk
authorfee1-dead <ent3rm4n@gmail.com>
Mon, 9 Jan 2023 15:35:27 +0000 (23:35 +0800)
committerGitHub <noreply@github.com>
Mon, 9 Jan 2023 15:35:27 +0000 (23:35 +0800)
commit63f2a13855a4b81989f43e8001c1a0ea64c0090f
treea133cdf0216951c086f24f33f943adb0cad0764d
parentc1f8a3ffb2b9b155b400a675727ebd470938805c
parent73e7207bfc0dc47f7b54c81c0d2351387ef708fb
Rollup merge of #106047 - uweigand:s390x-test-bigendian-ui, r=oli-obk

Fix ui constant tests for big-endian platforms

A number of tests under ui/const-ptr and ui/consts are currently failing on big-endian platforms as the binary encoding of some constants is hard-coded in the stderr test files.

Fix this by a combination of two types of changes:

- Where possible (i.e. where the particular value of a constant does not affect the purpose of the test), choose constant values that have the same encoding on big- and little-endian platforms.

- Where this is not possible, provide a normalize-stderr-test rule that transforms the printed big-endian encoding of such constants into the corresponding little-endian form.

Fixes part of https://github.com/rust-lang/rust/issues/105383.