[MDEV-13043] Skipped tests ignore warning suppressions Created: 2017-06-09 Updated: 2017-06-12 Resolved: 2017-06-12 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Tests |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.2 |
| Fix Version/s: | 10.1.25, 10.2.7, 10.3.1 |
| Type: | Bug | Priority: | Minor |
| Reporter: | Elena Stepanova | Assignee: | Elena Stepanova |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
When a test is skipped in the middle, all warnings produced by it are considered shutdown-related. Consider a test case similar to this:
Currently it would pass in any tree, because Access denied for user is suppressed globally in MTR; but if we remove that suppression, it would fail like this:
It's just to imitate a warning not suppressed globally. Then to fix it, we would need to add a local suppression:
Now it will work all right:
However, if the test skips itself in the middle, it doesn't work anymore:
This is because when a test is skipped, MTR does not perform check_warnings upon the end of test case, and thus all warnings produced during its partial execution are only noticed and registered when the server shuts down. |
| Comments |
| Comment by Elena Stepanova [ 2017-06-09 ] |
|
https://github.com/MariaDB/server/commit/558bec409ecbaa2a921163d472ca4a33084a72e6 |