[MDEV-30233] DROP DATABASE test fails: Directory not empty Created: 2022-12-15 Updated: 2022-12-15 Resolved: 2022-12-15 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Tests |
| Affects Version/s: | 10.3, 10.4, 10.5, 10.6, 10.7, 10.8, 10.9, 10.10, 10.11 |
| Fix Version/s: | 10.11.2, 10.3.38, 10.4.28, 10.5.19, 10.6.12, 10.7.8, 10.8.7, 10.9.5, 10.10.3 |
| Type: | Bug | Priority: | Major |
| Reporter: | Marko Mäkelä | Assignee: | Marko Mäkelä |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
Some tests execute the statement
to test scenarios where a default database is not available. This may not be safe, depending on which tests have been run previously on the same server. In particular, starting with The test main.view is the most frequent example of this, but others exist too:
I think that we should simply avoid dropping the "test" database in tests, and use a pattern like
to achieve a similar effect. |