@@ -713,6 +713,8 @@ mod tests {
713
713
714
714
use blazesym:: helper:: read_elf_build_id;
715
715
716
+ use test_tag:: tag;
717
+
716
718
use crate :: blaze_err_last;
717
719
718
720
@@ -728,6 +730,7 @@ mod tests {
728
730
}
729
731
730
732
/// Exercise the `Debug` representation of various types.
733
+ #[ tag( miri) ]
731
734
#[ test]
732
735
fn debug_repr ( ) {
733
736
let output = blaze_normalized_output {
@@ -799,6 +802,7 @@ mod tests {
799
802
}
800
803
801
804
/// Make sure that we can stringify normalization reasons as expected.
805
+ #[ tag( miri) ]
802
806
#[ test]
803
807
fn reason_stringification ( ) {
804
808
let data = [
@@ -826,6 +830,7 @@ mod tests {
826
830
827
831
/// Check that we can convert an [`Unknown`] into a
828
832
/// [`blaze_user_meta_unknown`] and back.
833
+ #[ tag( miri) ]
829
834
#[ test]
830
835
fn unknown_conversion ( ) {
831
836
let unknown = Unknown {
@@ -843,6 +848,7 @@ mod tests {
843
848
844
849
/// Check that we can convert an [`Apk`] into a [`blaze_user_meta_apk`] and
845
850
/// back.
851
+ #[ tag( miri) ]
846
852
#[ test]
847
853
fn apk_conversion ( ) {
848
854
let apk = Apk {
@@ -860,6 +866,7 @@ mod tests {
860
866
861
867
/// Check that we can convert an [`Elf`] into a [`blaze_user_meta_elf`]
862
868
/// and back.
869
+ #[ tag( miri) ]
863
870
#[ test]
864
871
fn elf_conversion ( ) {
865
872
let elf = Elf {
@@ -877,6 +884,7 @@ mod tests {
877
884
}
878
885
879
886
/// Make sure that we can create and free a normalizer instance.
887
+ #[ tag( miri) ]
880
888
#[ test]
881
889
fn normalizer_creation ( ) {
882
890
let normalizer = blaze_normalizer_new ( ) ;
@@ -892,7 +900,6 @@ mod tests {
892
900
libc:: __errno_location as Addr ,
893
901
libc:: dlopen as Addr ,
894
902
libc:: fopen as Addr ,
895
- elf_conversion as Addr ,
896
903
normalize_user_addrs as Addr ,
897
904
] ;
898
905
@@ -903,7 +910,7 @@ mod tests {
903
910
904
911
let user_addrs = unsafe { & * result } ;
905
912
assert_eq ! ( user_addrs. meta_cnt, 3 ) ;
906
- assert_eq ! ( user_addrs. output_cnt, 6 ) ;
913
+ assert_eq ! ( user_addrs. output_cnt, 5 ) ;
907
914
908
915
let meta = unsafe { user_addrs. metas . read ( ) } ;
909
916
assert_eq ! ( meta. kind, blaze_user_meta_kind:: BLAZE_USER_META_UNKNOWN ) ;
@@ -938,7 +945,6 @@ mod tests {
938
945
libc:: __errno_location as Addr ,
939
946
libc:: dlopen as Addr ,
940
947
libc:: fopen as Addr ,
941
- elf_conversion as Addr ,
942
948
normalize_user_addrs as Addr ,
943
949
] ;
944
950
let ( ) = addrs. sort ( ) ;
@@ -963,7 +969,7 @@ mod tests {
963
969
964
970
let user_addrs = unsafe { & * result } ;
965
971
assert_eq ! ( user_addrs. meta_cnt, 2 ) ;
966
- assert_eq ! ( user_addrs. output_cnt, 5 ) ;
972
+ assert_eq ! ( user_addrs. output_cnt, 4 ) ;
967
973
968
974
let ( ) = unsafe { blaze_user_output_free ( result) } ;
969
975
let ( ) = unsafe { blaze_normalizer_free ( normalizer) } ;
@@ -977,7 +983,6 @@ mod tests {
977
983
libc:: __errno_location as Addr ,
978
984
libc:: dlopen as Addr ,
979
985
libc:: fopen as Addr ,
980
- elf_conversion as Addr ,
981
986
normalize_user_addrs as Addr ,
982
987
] ;
983
988
let ( ) = addrs. sort_by ( |addr1, addr2| addr1. cmp ( addr2) . reverse ( ) ) ;
0 commit comments