Fix StructPacking test for ARM (#16484)
authorBruce Forstall <brucefo@microsoft.com>
Thu, 22 Feb 2018 05:58:41 +0000 (21:58 -0800)
committerJan Kotas <jkotas@microsoft.com>
Thu, 22 Feb 2018 05:58:41 +0000 (21:58 -0800)
commiteae9c75b53bb88dfe0914b247a8d379621de61af
tree9c4123b969ee3311e87a026b8533ae63bfb2d463
parent9264ec999eb42ecff8cd36068b051cf6e8f16501
Fix StructPacking test for ARM (#16484)

Use RuntimeInformation.ProcessArchitecture instead of
RuntimeInformation.OSArchitecture, as for Windows ARM we normally
run in the WoW layer.

Also, `double` on ARM is 8 byte aligned, but was going down the x86
code path that assumes 4-byte alignment.

Finally, add this test to the Windows ARM and Windows ARM64 test
runs by adding it to the respective tests.lst files.
tests/arm/Tests.lst
tests/arm64/Tests.lst
tests/src/Interop/StructPacking/StructPacking.cs