Skip to content

Commit 77be30f

Browse files
committed
Typecheck pretty-printing test results as libraries. Issue #789
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.
1 parent 0fbb678 commit 77be30f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/compiletest/runtest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ actual:\n\
164164

165165
fn make_typecheck_args(config: &config, testfile: &str) -> procargs {
166166
let prog = config.rustc_path;
167-
let args = ["-", "--no-trans"];
167+
let args = ["-", "--no-trans", "--lib"];
168168
ret {prog: prog, args: args};
169169
}
170170
}

0 commit comments

Comments
 (0)