-
Notifications
You must be signed in to change notification settings - Fork 428
TB: more fail tests (mostly shared with SB) #2887
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@rustbot author |
|
Selection of |
|
Oh, you are doing this for all fail tests now, wow. Time to rename the PR I guess? :D |
d5c038a to
d0d73a4
Compare
|
Error messages updated after the merge of #2888. Waiting for comments on
|
|
Some renames have been wrongly detected as deletion+creation. I can eventually make sure that git properly sees that it's all already existing files |
git decides this via some heuristic, the data model doesn't even distinguish these cases so this is |
Hm... in
Coverage looks pretty good to me. Which tests did you not copy over from fail/stacked_borrows? |
|
Of all tests remaining exclusive to the Pass TB, test added
These tests pass TB and are copied in Pass TB, no test added
Fail TB, no test added
Most of those I skipped, I felt that either (1) they were testing some super-specific SB thing (e.g. full of comments explaining how because this SharedRO is below this other one something will happen), or (2) we already have TB tests for these (e.g. deallocation with protector is checked independently by both SB and TB). What I could do is merge more tests so that there aren't as many things tested by both independently, select more SB fails to put in TB pass, and grab some more where both fail. |
a6467c3 to
0257cb8
Compare
|
Oh no, need to rebase. The only conflict seems to be the addition of |
0257cb8 to
d47598a
Compare
|
That is everything we discussed taken care of, I assume? @bors delegate |
|
Or you could if I could type the right command... |
|
@bors ping |
|
😪 I'm awake I'm awake |
- reorganize tests/ structure: {stacked,tree,both}_borrows
- UnsafeCell transmutation (the one that should fail, i.e. transmute &
-> UnsafeCell then try to write)
- select TB pass tests from existing SB fail tests (and a version that
fails TB)
- many fail tests now shared
* extra test for TB that parent write invalidates child reads
* buggy_* tests now shared
* tests for deep retagging (pass_invalid_shr_*) now shared
* extra TB test that shared references are read-only
* aliasing_mut{1,2,3,4} adapted to fail both
* extra TB test that write to raw parent invalidates shared children
* mut_exclusive_violation2 now shared
* issue-miri-1050-2 revisions fix
- deduplications
b329454 to
05640c4
Compare
|
@bors delegate=Vanille-N |
|
@bors delegate+ |
|
This is ready to land now anyway. 🤷 Let's see if that works... |
|
☀️ Test successful - checks-actions |
Although it was not in the tests,
mem::transmuteworks forUnsafeCell -> &as well.Draft: will also introduce more test cases for cases that fail.
Draft: depends on the new error messages from #2888