Skip to content

Commit

Permalink
Do not assert revisions list is empty for pretty printing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
nikomatsakis committed Mar 3, 2016
1 parent fff9c2b commit 9601e6f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/compiletest/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit 9601e6f

Please sign in to comment.