@@ -5,18 +5,20 @@ use std::time::Duration;
5
5
#[ test]
6
6
#[ cfg_attr( debug_assertions, ignore = "fails due to integer overflow" ) ]
7
7
fn abort_unfixed_in_debug_mode ( ) {
8
- let name = "very-long-abort" ;
9
- let base = Path :: new ( "tests" ) . join ( "fixtures" ) . join ( "fuzzed" ) ;
10
- let location = base. join ( Path :: new ( name) . with_extension ( "url" ) ) ;
11
- let url = std:: fs:: read ( & location) . unwrap ( ) ;
12
- let start = std:: time:: Instant :: now ( ) ;
13
- gix_url:: parse ( url. as_bstr ( ) ) . ok ( ) ;
14
- assert ! (
15
- start. elapsed( ) < Duration :: from_millis( 100 ) ,
16
- "URL at '{}' parsed too slowly, took {:.00}s" ,
17
- location. display( ) ,
18
- start. elapsed( ) . as_secs_f32( )
19
- ) ;
8
+ for name in [ "very-long-abort2" , "very-long-abort" ] {
9
+ let base = Path :: new ( "tests" ) . join ( "fixtures" ) . join ( "fuzzed" ) ;
10
+ let location = base. join ( Path :: new ( name) . with_extension ( "url" ) ) ;
11
+ let url = std:: fs:: read ( & location) . unwrap ( ) ;
12
+ let start = std:: time:: Instant :: now ( ) ;
13
+ dbg ! ( name) ;
14
+ gix_url:: parse ( url. as_bstr ( ) ) . ok ( ) ;
15
+ assert ! (
16
+ start. elapsed( ) < Duration :: from_millis( 100 ) ,
17
+ "URL at '{}' parsed too slowly, took {:.00}s" ,
18
+ location. display( ) ,
19
+ start. elapsed( ) . as_secs_f32( )
20
+ ) ;
21
+ }
20
22
}
21
23
22
24
#[ test]
0 commit comments