Skip to content

Commit 9601e6f

Browse files
committed
Do not assert revisions list is empty for pretty printing tests
1 parent fff9c2b commit 9601e6f

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/compiletest/runtest.rs

+5-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,11 @@ fn run_valgrind_test(config: &Config, props: &TestProps, testpaths: &TestPaths)
213213
}
214214

215215
fn run_pretty_test(config: &Config, props: &TestProps, testpaths: &TestPaths) {
216-
assert!(props.revisions.is_empty(), "revisions not relevant here");
216+
// Note: because we run the --pretty tests on the code in run-pass etc,
217+
// we may see a list of revisions -- but we can just ignore them.
218+
// We cannot assert that the list is empty as we do elsewhere.
219+
//
220+
// assert!(props.revisions.is_empty(), "revisions not relevant here");
217221

218222
if props.pp_exact.is_some() {
219223
logv(config, "testing for exact pretty-printing".to_owned());

0 commit comments

Comments
 (0)