Roxen.git/
server/
tools/
ntroxen/
startdll/
cmdline.cpp
Branch:
Tag:
Non-build tags
All tags
No tags
2018-04-13
2018-04-13 16:41:48 by Henrik Grubbström (Grubba) <grubba@grubba.org>
fc4575b41f9112d803fbc448d6d2bd7d5c4fe6ee (
13
lines) (+
8
/-
5
)
[
Show
|
Annotate
]
Branch:
fc4575b41f9112d803fbc448d6d2bd7d5c4fe6ee
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()); }