Consider the test a success if syntex fails to parse the original content.
@@ -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) {
