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

rpl.rpl_relay_max_extension test is not FreeBSD-compatible

    XMLWordPrintable

    Details

      Description

      $ perl ./mtr rpl.rpl_relay_max_extension --mem
       
      sed: 1: "/usr/home/ec2-user/mari ...": extra characters at the end of h command
      mysqltest: At line 52: exec of 'sed -i "s/slave-relay-bin.000002/slave-relay-bin.999997/g" /usr/home/ec2-user/mariadb-server/mysql-test/var/mysqld.2/data//relay-log.info' failed, error: 256, status: 1, errno: 22
      

      In FreeBSD, -i requires an argument, which is apparently why things go wrong.
      Something like this may fix the immediate problem

      sed -i='' ...
      

      and Linux seems to accept it too, but I don't know how much more portable it is, and anyway it looks hack-ish. Maybe it makes more sense to get rid of inline altogether, especially since it's apparently the only test that does it.
      Or disable the test for freebsd if you so prefer.

        Attachments

          Activity

            People

            Assignee:
            Elkin Andrei Elkin
            Reporter:
            elenst Elena Stepanova
            Votes:
            0 Vote for this issue
            Watchers:
            2 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.