Bug #21883 | Test "trigger" must fail in a RPM build on SuSE (x86, x86_64) | ||
---|---|---|---|
Submitted: | 28 Aug 2006 18:05 | Modified: | 22 Dec 2007 3:19 |
Reporter: | Joerg Bruehe | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Tests | Severity: | S3 (Non-critical) |
Version: | 5.0 | OS: | Linux (SuSE, x86 + x86_64, RPM) |
Assigned to: | Magnus BlÄudd | CPU Architecture: | Any |
[28 Aug 2006 18:05]
Joerg Bruehe
[30 Aug 2006 7:55]
Joerg Bruehe
I have set bug#21435 to "Not a bug", with a technical explanation. It is a *bad idea* (tm) to run a server as "root" (assuming it can be avoided). I will remove the "Solaris" entry from the platform list here: This test failure will occur on any Unix platform if the server runs as "root". As regards the documentation: I have not checked what it says about the user who starts the MySQL server, but IMO it should contain a recommendation not to use "root" for this, and it sure may contain words like "the test suite assumes it is all run by a non-root user". This here is a different aspect: It is not the failing test, it is the use of a wrong approach in building, for which the test failure is just a symptom. (Note the category "packaging" - this is no server failure!) Explicitly: We may need to be "root" when starting the RPM build the SuSE way, but we should see to fall back onto a "normal" user once the environment has been changed.
[22 Dec 2007 3:19]
Kent Boortz
A line "--source include/not_as_root.inc" was added to the test case. No documentation is needed.