]> git.lizzy.rs Git - rust.git/commitdiff
Do not assert revisions list is empty for pretty printing tests
authorNiko Matsakis <niko@alum.mit.edu>
Thu, 3 Mar 2016 09:17:39 +0000 (04:17 -0500)
committerNiko Matsakis <niko@alum.mit.edu>
Thu, 3 Mar 2016 09:17:39 +0000 (04:17 -0500)
src/compiletest/runtest.rs

index 0987e6a20dbff8faaf150a1a71d931966312e371..c3a7d9c053a2ba4d73d0c16fb260460482fdc983 100644 (file)
@@ -213,7 +213,11 @@ fn run_valgrind_test(config: &Config, props: &TestProps, testpaths: &TestPaths)
 }
 
 fn run_pretty_test(config: &Config, props: &TestProps, testpaths: &TestPaths) {
-    assert!(props.revisions.is_empty(), "revisions not relevant here");
+    // Note: because we run the --pretty tests on the code in run-pass etc,
+    // we may see a list of revisions -- but we can just ignore them.
+    // We cannot assert that the list is empty as we do elsewhere.
+    //
+    // assert!(props.revisions.is_empty(), "revisions not relevant here");
 
     if props.pp_exact.is_some() {
         logv(config, "testing for exact pretty-printing".to_owned());