Branch: Tag:

2018-04-13

2018-04-13 16:41:48 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Start [NT]: Fixed argument order for testsuite setup command.

1514:    // NB: Same behavior as stracat(), but I don't trust stracat().    // /grubba 2018-04-13    char **arr = m_saPikeDefines.GetList(); +  std::string defines = "";    while (*arr) { -  setupCmd += " "; +     if (strchr(*arr, ' ')) { -  setupCmd += "\""; -  setupCmd += *arr; -  setupCmd += "\""; +  defines += "\""; +  defines += *arr; +  defines += "\"";    } else { -  setupCmd += *arr; +  defines += *arr;    } -  +  defines += " ";    arr++;    } -  +  setupCmd = defines + setupCmd;    setupCmd += " " + selfTestDirUnx + " ../var";    CRoxen::RunPike(setupCmd.c_str());    }