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

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • None
    • None
    • None

    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.

      Attachments

        Activity

          People

            serg Sergei Golubchik
            alexbudovski Alex Budovski (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.