From 9601e6f252f725f1aa90b15cab0e22732b0076ee Mon Sep 17 00:00:00 2001 From: Niko Matsakis Date: Thu, 3 Mar 2016 04:17:39 -0500 Subject: [PATCH] Do not assert revisions list is empty for pretty printing tests --- src/compiletest/runtest.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/compiletest/runtest.rs b/src/compiletest/runtest.rs index 0987e6a20db..c3a7d9c053a 100644 --- a/src/compiletest/runtest.rs +++ b/src/compiletest/runtest.rs @@ -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());