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

Make unit tests run with valgrind

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Open (View Workflow)
    • Priority: Major
    • Resolution: Unresolved
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      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

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

                Dates

                Created:
                Updated:

                  Git Integration