@@ -274,13 +274,13 @@ impl Write for StdWriter {
274
274
}
275
275
276
276
#[ cfg( test) ]
277
- #[ cfg_attr( miri, ignore) ]
278
277
mod tests {
279
278
use super :: * ;
280
279
use std:: fs;
281
280
use tempfile:: TempDir ;
282
281
283
282
#[ test]
283
+ #[ cfg_attr( miri, ignore) ]
284
284
fn test_file_writer_basic_functionality ( ) {
285
285
let temp_dir = TempDir :: new ( ) . unwrap ( ) ;
286
286
let file_path = temp_dir. path ( ) . join ( "test.log" ) ;
@@ -306,6 +306,7 @@ mod tests {
306
306
}
307
307
308
308
#[ test]
309
+ #[ cfg_attr( miri, ignore) ]
309
310
fn test_file_writer_creates_directories ( ) {
310
311
let temp_dir = TempDir :: new ( ) . unwrap ( ) ;
311
312
let nested_path = temp_dir
@@ -326,6 +327,7 @@ mod tests {
326
327
}
327
328
328
329
#[ test]
330
+ #[ cfg_attr( miri, ignore) ]
329
331
fn test_basic_rotation ( ) {
330
332
let temp_dir = TempDir :: new ( ) . unwrap ( ) ;
331
333
let file_path = temp_dir. path ( ) . join ( "rotate.log" ) ;
@@ -356,6 +358,7 @@ mod tests {
356
358
}
357
359
358
360
#[ test]
361
+ #[ cfg_attr( miri, ignore) ]
359
362
fn test_max_files_cleanup ( ) {
360
363
let temp_dir = TempDir :: new ( ) . unwrap ( ) ;
361
364
let file_path = temp_dir. path ( ) . join ( "cleanup.log" ) ;
@@ -389,6 +392,7 @@ mod tests {
389
392
}
390
393
391
394
#[ test]
395
+ #[ cfg_attr( miri, ignore) ]
392
396
fn test_max_files_one_keeps_only_current ( ) {
393
397
let temp_dir = TempDir :: new ( ) . unwrap ( ) ;
394
398
let file_path = temp_dir. path ( ) . join ( "single.log" ) ;
@@ -422,6 +426,7 @@ mod tests {
422
426
}
423
427
424
428
#[ test]
429
+ #[ cfg_attr( miri, ignore) ]
425
430
fn test_no_rotation_when_size_not_specified ( ) {
426
431
let temp_dir = TempDir :: new ( ) . unwrap ( ) ;
427
432
let file_path = temp_dir. path ( ) . join ( "no_rotation.log" ) ;
@@ -453,6 +458,7 @@ mod tests {
453
458
}
454
459
455
460
#[ test]
461
+ #[ cfg_attr( miri, ignore) ]
456
462
fn test_invalid_path_handling ( ) {
457
463
let config = FileConfig {
458
464
path : String :: new ( ) ,
0 commit comments