Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-3649

LP:509922 - Test runner doesn't honor --vs-config option when searching for mysqld

    Details

    • Type: Bug
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:

      Description

      I added some instrumenting code. When it looks for DLLs, it does the right thing (uses sub vs_config_dir), but 'sub find_mysqld' ignores vs-config completely, and finds the first available one! In this case, I asked for the debug configuration, but it found the first available one which was RelWithDebInfo.

      Apart from being incorrect, this can also cause crashes due to inconsistency created between modules.

      D:\dev\bzr\mysql-server\maria\mysql-test>mysql-test-run.pl --vs-config=debug --do-test=maria
      Logging: D:\dev\bzr\mysql-server\maria\mysql-test\mysql-test-run.pl --vs-config=debug --do-test=maria
      == D:/dev/bzr/mysql-server/maria/client/debug/ ==
      MySQL Version 5.1.42
      Checking supported features...

      • SSL connections supported
        == D:/dev/bzr/mysql-server/maria/storage/example/debug/ha_example.dll ==
        Collecting tests...
        vardir: D:/dev/bzr/mysql-server/maria/mysql-test/var
        Checking leftover processes...
        Removing old var directory...
        Creating var directory 'D:/dev/bzr/mysql-server/maria/mysql-test/var'...
        Installing system database...
        Using server port 1606

      ==============================================================================

      TEST RESULT TIME (ms)
      ------------------------------------------------------------

      Found the wrong one!!! D:/dev/bzr/mysql-server/maria/sql/relwithdebinfo/mysqld.exe <--- here.

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            serg Sergei Golubchik added a comment -

            Re: Test runner doesn't honor --vs-config option when searching for mysqld
            will be in 5.1.48

            Show
            serg Sergei Golubchik added a comment - Re: Test runner doesn't honor --vs-config option when searching for mysqld will be in 5.1.48
            Hide
            ratzpo Rasmus Johansson added a comment -

            Launchpad bug id: 509922

            Show
            ratzpo Rasmus Johansson added a comment - Launchpad bug id: 509922

              People

              • Assignee:
                serg Sergei Golubchik
                Reporter:
                alexbudovski Alex Budovski
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: