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

Make unit tests run with valgrind

    XMLWordPrintable

Details

    • Task
    • Status: Open (View Workflow)
    • Major
    • Resolution: Unresolved
    • None
    • None
    • None

    Description

      It is possible to add valgrind support to mysql-test/suite/unit/suite.pm
      (check $::opt_valgrind and run the command via valgrind)

      The problem is that our unit test are not valgrind safe.

      when the cast will be done also following test should be added:

      #include "mysql.h"
      #include "mysqld_error.h"
       
      int main(int argc __attribute__((unused)), char **argv __attribute__((unused)))
      {
        for (int i= 0; i < 5; i++)
        {
          MYSQL connection, *c= 0;
       
          c = mysql_init(&connection);
          c = mysql_real_connect(&connection,
                                 "localhost", "invalid", "invalid",
                                 0, 0, 0, 0);
        }
      }
      

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              sanja Oleksandr Byelkin
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Git Integration

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