diff options
| author | Brian Anderson <banderson@mozilla.com> | 2011-09-01 18:49:10 -0700 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2011-09-01 18:54:03 -0700 |
| commit | 418d09e547a021ad4853680f7efc3efc8774054c (patch) | |
| tree | b6cd0c22529d90105a7cc1d87fde5504f31031f5 /src/lib/test.rs | |
| parent | b4b81117ce3713599b48d2168bf10e0225f94819 (diff) | |
| download | rust-418d09e547a021ad4853680f7efc3efc8774054c.tar.gz rust-418d09e547a021ad4853680f7efc3efc8774054c.zip | |
Convert all uses of #ifmt to #fmt. Issue #855
Diffstat (limited to 'src/lib/test.rs')
| -rw-r--r-- | src/lib/test.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/lib/test.rs b/src/lib/test.rs index 77936e2b572..e8ab05a46ba 100644 --- a/src/lib/test.rs +++ b/src/lib/test.rs @@ -120,11 +120,11 @@ fn run_tests_console_(opts: &test_opts, tests: &[test_desc], te_filtered(filtered_tests) { st.total = vec::len(filtered_tests); st.out.write_line( - #ifmt["\nrunning %u tests", st.total]); + #fmt["\nrunning %u tests", st.total]); } te_wait(test) { st.out.write_str( - #ifmt["test %s ... ", test.name]); + #fmt["test %s ... ", test.name]); } te_result(test, result) { alt result { @@ -167,17 +167,17 @@ fn run_tests_console_(opts: &test_opts, tests: &[test_desc], st.out.write_line(~"\nfailures:"); for test: test_desc in st.failures { let testname = test.name; // Satisfy alias analysis - st.out.write_line(#ifmt[" %s", testname]); + st.out.write_line(#fmt[" %s", testname]); } } - st.out.write_str(#ifmt["\nresult: "]); + st.out.write_str(#fmt["\nresult: "]); if success { // There's no parallelism at this point so it's safe to use color write_ok(st.out, true); } else { write_failed(st.out, true); } st.out.write_str( - #ifmt[". %u passed; %u failed; %u ignored\n\n", st.passed, + #fmt[". %u passed; %u failed; %u ignored\n\n", st.passed, st.failed, st.ignored]); ret success; @@ -225,7 +225,7 @@ fn run_tests(opts: &test_opts, tests: &[test_desc], to_task: &test_to_task, // provide a great user experience because you might sit waiting for the // result of a particular test for an unusually long amount of time. let concurrency = get_concurrency(); - log #ifmt["using %u test tasks", concurrency]; + log #fmt["using %u test tasks", concurrency]; let total = vec::len(filtered_tests); let run_idx = 0u; let wait_idx = 0u; |
