File tree Expand file tree Collapse file tree 4 files changed +13
-7
lines changed Expand file tree Collapse file tree 4 files changed +13
-7
lines changed Original file line number Diff line number Diff line change @@ -717,9 +717,11 @@ mod tests {
717
717
use std:: mem:: size_of;
718
718
719
719
use test_log:: test;
720
+ use test_tag:: tag;
720
721
721
722
722
723
/// Exercise the `Display` representation of various types.
724
+ #[ tag( miri) ]
723
725
#[ test]
724
726
fn display_repr ( ) {
725
727
assert_eq ! ( ErrorKind :: NotFound . to_string( ) , "entity not found" ) ;
@@ -731,6 +733,7 @@ mod tests {
731
733
}
732
734
733
735
/// Check various features of our `Str` wrapper type.
736
+ #[ tag( miri) ]
734
737
#[ test]
735
738
fn str_wrapper ( ) {
736
739
let b = "test string" . to_string ( ) . into_boxed_str ( ) ;
@@ -748,6 +751,7 @@ mod tests {
748
751
}
749
752
750
753
/// Check that we can convert a `dyn std::error::Error` into our `Error`.
754
+ #[ tag( miri) ]
751
755
#[ test]
752
756
fn std_error_conversion ( ) {
753
757
let err = io:: Error :: new ( io:: ErrorKind :: InvalidData , "some invalid data" ) ;
@@ -760,6 +764,7 @@ mod tests {
760
764
}
761
765
762
766
/// Check that we can format errors as expected.
767
+ #[ tag( miri) ]
763
768
#[ test]
764
769
fn error_formatting ( ) {
765
770
let err = io:: Error :: new ( io:: ErrorKind :: InvalidData , "some invalid data" ) ;
Original file line number Diff line number Diff line change @@ -205,11 +205,13 @@ mod tests {
205
205
use super :: * ;
206
206
207
207
use test_log:: test;
208
+ use test_tag:: tag;
208
209
209
210
use crate :: ErrorKind ;
210
211
211
212
212
213
/// Exercise the `Debug` representation of various types.
214
+ #[ tag( miri) ]
213
215
#[ test]
214
216
fn debug_repr ( ) {
215
217
let resolver = KSymResolver {
@@ -284,6 +286,7 @@ mod tests {
284
286
ensure_addr_for_name ( found. name , addr) ;
285
287
}
286
288
289
+ #[ tag( miri) ]
287
290
#[ test]
288
291
fn find_ksym ( ) {
289
292
let resolver = KSymResolver {
@@ -344,6 +347,7 @@ mod tests {
344
347
}
345
348
346
349
/// Check that we can correctly iterate over all symbols.
350
+ #[ tag( miri) ]
347
351
#[ test]
348
352
fn symbol_iteration ( ) {
349
353
let resolver = KSymResolver {
@@ -381,6 +385,7 @@ mod tests {
381
385
/// Check that [`KSymResolver::find_addr`] and
382
386
/// [`KSymResolver::for_each`] behave as expected for variable
383
387
/// inquiries.
388
+ #[ tag( miri) ]
384
389
#[ test]
385
390
fn variable_operations ( ) {
386
391
let resolver = KSymResolver {
Original file line number Diff line number Diff line change @@ -313,6 +313,7 @@ mod tests {
313
313
use std:: path:: Path ;
314
314
315
315
use test_log:: test;
316
+ use test_tag:: tag;
316
317
317
318
#[ cfg( feature = "nightly" ) ]
318
319
use test:: Bencher ;
@@ -334,6 +335,7 @@ mod tests {
334
335
}
335
336
336
337
/// Make sure that we can parse proc maps lines correctly.
338
+ #[ tag( miri) ]
337
339
#[ test]
338
340
fn map_line_parsing ( ) {
339
341
let lines = r#"00400000-00401000 r--p 00000000 00:29 47459 /tmp/test/test
@@ -443,6 +445,7 @@ ffffffffff600000-ffffffffff601000 --xp 00000000 00:00 0 [vsysca
443
445
}
444
446
445
447
/// Check that we error out as expected on malformed proc maps lines.
448
+ #[ tag( miri) ]
446
449
#[ test]
447
450
fn malformed_proc_maps_lines ( ) {
448
451
let lines = [
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments