@@ -145,7 +145,7 @@ impl core::error::Error for MbiLoadError {}
145
145
146
146
/// The basic header of a boot information.
147
147
#[ derive( Copy , Clone , Debug , PartialEq , Eq , PartialOrd , Ord , Hash ) ]
148
- #[ repr( C , align ( 8 ) ) ]
148
+ #[ repr( C ) ]
149
149
pub struct BootInformationHeader {
150
150
// size is multiple of 8
151
151
total_size : u32 ,
@@ -661,6 +661,7 @@ mod tests {
661
661
}
662
662
663
663
#[ test]
664
+ #[ cfg_attr( miri, ignore) ]
664
665
fn name_tag ( ) {
665
666
#[ repr( C , align( 8 ) ) ]
666
667
struct Bytes ( [ u8 ; 32 ] ) ;
@@ -695,6 +696,7 @@ mod tests {
695
696
}
696
697
697
698
#[ test]
699
+ #[ cfg_attr( miri, ignore) ]
698
700
fn framebuffer_tag_rgb ( ) {
699
701
// direct RGB mode test:
700
702
// taken from GRUB2 running in QEMU at
@@ -755,6 +757,7 @@ mod tests {
755
757
}
756
758
757
759
#[ test]
760
+ #[ cfg_attr( miri, ignore) ]
758
761
fn framebuffer_tag_indexed ( ) {
759
762
// indexed mode test:
760
763
// this is synthetic, as I can't get QEMU
@@ -826,6 +829,7 @@ mod tests {
826
829
}
827
830
828
831
#[ test]
832
+ #[ cfg_attr( miri, ignore) ]
829
833
fn vbe_info_tag ( ) {
830
834
//Taken from GRUB2 running in QEMU.
831
835
#[ repr( C , align( 8 ) ) ]
@@ -996,6 +1000,7 @@ mod tests {
996
1000
/// Tests to parse a MBI that was statically extracted from a test run with
997
1001
/// GRUB as bootloader.
998
1002
#[ test]
1003
+ #[ cfg_attr( miri, ignore) ]
999
1004
fn grub2 ( ) {
1000
1005
#[ repr( C , align( 8 ) ) ]
1001
1006
struct Bytes ( [ u8 ; 960 ] ) ;
@@ -1411,6 +1416,7 @@ mod tests {
1411
1416
}
1412
1417
1413
1418
#[ test]
1419
+ #[ cfg_attr( miri, ignore) ]
1414
1420
fn elf_sections ( ) {
1415
1421
#[ repr( C , align( 8 ) ) ]
1416
1422
struct Bytes ( [ u8 ; 168 ] ) ;
@@ -1487,6 +1493,7 @@ mod tests {
1487
1493
}
1488
1494
1489
1495
#[ test]
1496
+ #[ cfg_attr( miri, ignore) ]
1490
1497
fn efi_memory_map ( ) {
1491
1498
#[ repr( C , align( 8 ) ) ]
1492
1499
struct Bytes ( [ u8 ; 72 ] ) ;
@@ -1565,6 +1572,7 @@ mod tests {
1565
1572
1566
1573
/// Example for a custom tag.
1567
1574
#[ test]
1575
+ #[ cfg_attr( miri, ignore) ]
1568
1576
fn get_custom_tag_from_mbi ( ) {
1569
1577
const CUSTOM_TAG_ID : u32 = 0x1337 ;
1570
1578
@@ -1626,10 +1634,11 @@ mod tests {
1626
1634
1627
1635
/// Example for a custom DST tag.
1628
1636
#[ test]
1637
+ #[ cfg_attr( miri, ignore) ]
1629
1638
fn get_custom_dst_tag_from_mbi ( ) {
1630
1639
const CUSTOM_TAG_ID : u32 = 0x1337 ;
1631
1640
1632
- #[ repr( C , align ( 8 ) ) ]
1641
+ #[ repr( C ) ]
1633
1642
#[ derive( crate :: Pointee ) ]
1634
1643
struct CustomTag {
1635
1644
tag : TagTypeId ,
@@ -1703,6 +1712,7 @@ mod tests {
1703
1712
1704
1713
/// Tests that `get_tag` can consume multiple types that implement `Into<TagTypeId>`
1705
1714
#[ test]
1715
+ #[ cfg_attr( miri, ignore) ]
1706
1716
fn get_tag_into_variants ( ) {
1707
1717
#[ repr( C , align( 8 ) ) ]
1708
1718
struct Bytes ( [ u8 ; 32 ] ) ;
0 commit comments