Roxen.git / server / tools / ntroxen / startdll / cmdline.cpp

version» Context lines:

Roxen.git/server/tools/ntroxen/startdll/cmdline.cpp:1507:    SetEnvironmentVariable("COPYCMD", "/Y");    system("rmdir /Q /S ..\\var\\test_config >NUL:");       std::string setupCmd = m_SelfTestDir + "\\scripts\\setup.pike";    DWORD attr = GetFileAttributes(setupCmd.c_str());    if (attr != -1 && !(attr & FILE_ATTRIBUTE_DIRECTORY))    {    // 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());    }       }    //OutputLineFmt(hOut, ".BSelfTest argument: %sB.", argv[i]);    break;       case eArgHelp:    // No extra handling here