@@ -63,9 +63,9 @@ pub fn run_metrics(config: config, testfile: ~str, mm: &mut MetricMap) {
63
63
io:: stdout ( ) . write_str ( "\n \n " ) ;
64
64
}
65
65
let testfile = Path :: new ( testfile) ;
66
- debug2 ! ( "running {}" , testfile. display( ) ) ;
66
+ debug ! ( "running {}" , testfile. display( ) ) ;
67
67
let props = load_props ( & testfile) ;
68
- debug2 ! ( "loaded props" ) ;
68
+ debug ! ( "loaded props" ) ;
69
69
match config. mode {
70
70
mode_compile_fail => run_cfail_test ( & config, & props, & testfile) ,
71
71
mode_run_fail => run_rfail_test ( & config, & props, & testfile) ,
@@ -241,7 +241,7 @@ actual:\n\
241
241
\n ",
242
242
expected, actual) ;
243
243
io:: stdout( ) . write_str ( msg) ;
244
- fail2 !( ) ;
244
+ fail !( ) ;
245
245
}
246
246
}
247
247
@@ -289,7 +289,7 @@ fn run_debuginfo_test(config: &config, props: &TestProps, testfile: &Path) {
289
289
let script_str = [ ~"set charset UTF -8 ",
290
290
cmds,
291
291
~"quit\n "] . connect( "\n ") ;
292
- debug2 !( "script_str = { } ", script_str) ;
292
+ debug !( "script_str = { } ", script_str) ;
293
293
dump_output_file( config, testfile, script_str, "debugger. script") ;
294
294
295
295
// run debugger script with gdb
@@ -348,10 +348,10 @@ fn check_error_patterns(props: &TestProps,
348
348
let mut done = false ;
349
349
for line in ProcRes . stderr . line_iter ( ) {
350
350
if line. contains ( * next_err_pat) {
351
- debug2 ! ( "found error pattern {}" , * next_err_pat) ;
351
+ debug ! ( "found error pattern {}" , * next_err_pat) ;
352
352
next_err_idx += 1 u;
353
353
if next_err_idx == props. error_patterns . len ( ) {
354
- debug2 ! ( "found all error patterns" ) ;
354
+ debug ! ( "found all error patterns" ) ;
355
355
done = true ;
356
356
break ;
357
357
}
@@ -423,7 +423,7 @@ fn check_expected_errors(expected_errors: ~[errors::ExpectedError],
423
423
let mut was_expected = false ;
424
424
for ( i, ee) in expected_errors. iter ( ) . enumerate ( ) {
425
425
if !found_flags[ i] {
426
- debug2 ! ( "prefix={} ee.kind={} ee.msg={} line={}" ,
426
+ debug ! ( "prefix={} ee.kind={} ee.msg={} line={}" ,
427
427
prefixes[ i] , ee. kind, ee. msg, line) ;
428
428
if ( prefix_matches ( line, prefixes[ i] ) &&
429
429
line. contains ( ee. kind ) &&
@@ -626,7 +626,7 @@ fn compose_and_run_compiler(
626
626
fn ensure_dir ( path : & Path ) {
627
627
if os:: path_is_dir ( path) { return ; }
628
628
if !os:: make_dir ( path, 0x1c0i32 ) {
629
- fail2 ! ( "can't make dir {}" , path. display( ) ) ;
629
+ fail ! ( "can't make dir {}" , path. display( ) ) ;
630
630
}
631
631
}
632
632
@@ -784,7 +784,7 @@ fn maybe_dump_to_stdout(config: &config, out: &str, err: &str) {
784
784
785
785
fn error(err: ~str) { io::stdout().write_line(format!("\n error: {}" , err) ) ; }
786
786
787
- fn fatal ( err : ~str ) -> ! { error ( err) ; fail2 ! ( ) ; }
787
+ fn fatal ( err : ~str ) -> ! { error ( err) ; fail ! ( ) ; }
788
788
789
789
fn fatal_ProcRes ( err : ~str , ProcRes : & ProcRes ) -> ! {
790
790
let msg =
@@ -802,7 +802,7 @@ stderr:\n\
802
802
\n ",
803
803
err, ProcRes . cmdline, ProcRes . stdout, ProcRes . stderr) ;
804
804
io:: stdout ( ) . write_str ( msg) ;
805
- fail2 ! ( ) ;
805
+ fail ! ( ) ;
806
806
}
807
807
808
808
fn _arm_exec_compiled_test ( config : & config , props : & TestProps ,
0 commit comments