Consider the test a success if syntex fails to parse the original content.

This commit is contained in:
Arnavion 2017-04-21 14:27:41 -07:00
parent 67660b422f
commit 740e8ab8b6

View File

@ -113,11 +113,10 @@ fn test_round_trip() {
diagnostic.cancel();
if diagnostic.message().starts_with("file not found for module") {
errorf!("ignore\n");
return true;
} else {
errorf!("FAIL: {}\n", diagnostic.message());
return false;
errorf!("ignore - syntex failed to parse original content: {}\n", diagnostic.message());
}
return true;
}
};
let after = match syntex_parse(back, &sess) {