Roxen.git
/
server
/
tools
/
ntroxen
/
startdll
/
cmdline.cpp
version
»
Context lines:
10
20
40
80
file
none
3
Roxen.git/server/tools/ntroxen/startdll/cmdline.cpp:1504:
// Make sure that mysql is not running KillMySql(m_ConfigDir.c_str()); 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)) {
-
setupCmd
+=
stracat(
" "
, m_saPikeDefines.GetList());
+
//
NB:
Same behavior as
stracat(
)
,
but I don't trust stracat().
+
// /grubba 2018-04-13
+
char **arr =
m_saPikeDefines.GetList()
;
+
while (*arr
)
{
+
if (strchr(*arr, ' ')) {
+
setupCmd += " \"" + *arr + "\""
;
+
} else {
+
setupCmd += " " + *arr;
+
}
+
arr++;
+
}
setupCmd += " " + selfTestDirUnx + " ../var"; CRoxen::RunPike(setupCmd.c_str()); } } //OutputLineFmt(hOut, ".BSelfTest argument: %sB.", argv[i]); break; case eArgHelp: // No extra handling here