From b1e8c7215d6aad2ad1ae6f1375676cf92aa16f87 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Tue, 22 Aug 2017 12:45:10 -0700 Subject: [PATCH] Fix little-endian assumptions in run-pass/union/union-basic --- src/test/run-pass/union/union-basic.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/test/run-pass/union/union-basic.rs b/src/test/run-pass/union/union-basic.rs index de744520cc6be..079f6a6b641e9 100644 --- a/src/test/run-pass/union/union-basic.rs +++ b/src/test/run-pass/union/union-basic.rs @@ -10,10 +10,6 @@ // aux-build:union.rs -// FIXME: This test case makes little-endian assumptions. -// ignore-s390x -// ignore-sparc - extern crate union; use std::mem::{size_of, align_of, zeroed}; @@ -39,7 +35,7 @@ fn local() { assert_eq!(w.b, 0); w.a = 1; assert_eq!(w.a, 1); - assert_eq!(w.b, 1); + assert_eq!(w.b.to_le(), 1); } } @@ -60,7 +56,7 @@ fn xcrate() { assert_eq!(w.b, 0); w.a = 1; assert_eq!(w.a, 1); - assert_eq!(w.b, 1); + assert_eq!(w.b.to_le(), 1); } }