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:1510:
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(); while (*arr) {
+
setupCmd += " ";
if (strchr(*arr, ' ')) {
-
setupCmd += "
\"" + *arr + "\"";
+
setupCmd += "\""
;
+
setupCmd
+
=
*arr
;
+
setupCmd
+
=
"\"";
} else {
-
setupCmd +=
" " +
*arr;
+
setupCmd += *arr;
} arr++; } setupCmd += " " + selfTestDirUnx + " ../var"; CRoxen::RunPike(setupCmd.c_str()); } } //OutputLineFmt(hOut, ".BSelfTest argument: %sB.", argv[i]); break;