mirror of
https://gitee.com/openharmony/third_party_rust_syn
synced 2024-11-30 11:20:26 +00:00
Consider the test a success if syntex fails to parse the original content.
This commit is contained in:
parent
67660b422f
commit
740e8ab8b6
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user