From 77be30fa737c6b55faf3a52fbd2050f5b35ebb02 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Mon, 1 Aug 2011 14:47:24 -0700 Subject: [PATCH] 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. --- src/test/compiletest/runtest.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/test/compiletest/runtest.rs b/src/test/compiletest/runtest.rs index 53bedaa2a18a..866fa4d23917 100644 --- a/src/test/compiletest/runtest.rs +++ b/src/test/compiletest/runtest.rs @@ -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}; } }