[MDEV-8532] MTR cannot run with --embedded on Windows on a source build Created: 2015-07-23 Updated: 2015-07-25 Resolved: 2015-07-25 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Tests |
| Affects Version/s: | 10.0, 10.1 |
| Fix Version/s: | 10.0.21 |
| Type: | Bug | Priority: | Major |
| Reporter: | Elena Stepanova | Assignee: | Elena Stepanova |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Description |
|
The problem is here:
Simplest patch:
|
| Comments |
| Comment by Elena Stepanova [ 2015-07-24 ] | ||||||||
|
https://github.com/MariaDB/server/commit/da594da84153d50e8c893126c1d7e3e1f73b5f42
serg, | ||||||||
| Comment by Sergei Golubchik [ 2015-07-24 ] | ||||||||
|
I would rather do
because with your change the execution on Windows will go into the branch with unix path names (<../storage/*/.libs/*.so>, etc). This !$opt_embedded_server was added by wlad with the comment “Avoid plugin tests on Windows/embedded, plugins do not and will not work here”. I don't quite understand why they “do not and will not”, but either way the fix is not correct. It should've been
You can either do that or enable plugin tests and see what happens | ||||||||
| Comment by Elena Stepanova [ 2015-07-24 ] | ||||||||
|
Actually, the result would be the same. With the current check it will indeed search for the unix path names, but obviously won't find any, so no plugins would not be copied for the Windows embedded server either way. But no problem, I can do it with the extra if. | ||||||||
| Comment by Vladislav Vaintroub [ 2015-07-24 ] | ||||||||
|
Can explain why plugins would not work on Windows/embedded. This is is due to how DLL loading and symbols resolution works on Windows.
Since the running process in case of embedded is not mysqld.exe , plugins would not be able to load. | ||||||||
| Comment by Sergei Golubchik [ 2015-07-24 ] | ||||||||
|
wlad, thanks! Then it's clear what the fix should be. elenst, yes, they're the same, but it's cleaner not to execute unix specific code on windows, even if it does nothing after we've suppressed all errors that were caused by running unix specific code on windows. | ||||||||
| Comment by Elena Stepanova [ 2015-07-25 ] | ||||||||
|
https://github.com/MariaDB/server/commit/2ebedfa998bd9f3f2255b05607a9cb09b6def93d |