about summary refs log tree commit diff
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2011-08-01 14:47:24 -0700
committerBrian Anderson <banderson@mozilla.com>2011-08-02 10:39:14 -0700
commit77be30fa737c6b55faf3a52fbd2050f5b35ebb02 (patch)
treed40b167a14e2faef86ee7b6f6d7fec3d2ab63ff4
parent0fbb6782bbdbe8d3bd703ca46110c989aec3e2ff (diff)
downloadrust-77be30fa737c6b55faf3a52fbd2050f5b35ebb02.tar.gz
rust-77be30fa737c6b55faf3a52fbd2050f5b35ebb02.zip
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.
-rw-r--r--src/test/compiletest/runtest.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/compiletest/runtest.rs b/src/test/compiletest/runtest.rs
index 53bedaa2a18..866fa4d2391 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};
     }
 }