Skip to content

Commit

Permalink
Typecheck pretty-printing test results as libraries. Issue #789
Browse files Browse the repository at this point in the history
After running source files through the pretty printer, we sanity check them by
running the results through the compiler with the --no-trans flag. Now also
use the --lib flag so that pretty-printer tests don't have to include a main
function.
  • Loading branch information
brson committed Aug 2, 2011
1 parent 0fbb678 commit 77be30f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/test/compiletest/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ actual:\n\

fn make_typecheck_args(config: &config, testfile: &str) -> procargs {
let prog = config.rustc_path;
let args = ["-", "--no-trans"];
let args = ["-", "--no-trans", "--lib"];
ret {prog: prog, args: args};
}
}
Expand Down

0 comments on commit 77be30f

Please sign in to comment.