Skip to content

Commit 51ef7a3

Browse files
committed
Clean up output a bit when running verbose compile tests
1 parent 90a79b9 commit 51ef7a3

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/test/compiletest/compiletest.rs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,10 @@ mod runtest {
388388
export run;
389389

390390
fn run(cx: &cx, testfile: &str) {
391+
if (cx.config.verbose) {
392+
// We're going to be dumping a lot of info. Start on a new line.
393+
io::stdout().write_str("\n\n");
394+
}
391395
log #fmt("running %s", testfile);
392396
task::unsupervise();
393397
let props = load_props(testfile);
@@ -523,7 +527,7 @@ mod runtest {
523527
let cmdline =
524528
{
525529
let cmdline = make_cmdline(lib_path, prog, args);
526-
logv(cx.config, #fmt("running %s", cmdline));
530+
logv(cx.config, #fmt("executing %s", cmdline));
527531
cmdline
528532
};
529533
let res = procsrv::run(cx.procsrv, lib_path, prog, args);
@@ -562,9 +566,9 @@ mod runtest {
562566
fn maybe_dump_to_stdout(config: &config,
563567
out: &str, err: &str) {
564568
if config.verbose {
565-
let sep1 = #fmt("-%s-----------------------------------",
569+
let sep1 = #fmt("------%s------------------------------",
566570
"stdout");
567-
let sep2 = #fmt("-%s-----------------------------------",
571+
let sep2 = #fmt("------%s------------------------------",
568572
"stderr");
569573
let sep3 = "------------------------------------------";
570574
io::stdout().write_line(sep1);

0 commit comments

Comments
 (0)