BUG#259: Do not double quote arguments if they are already quoted when writing DartTestfile.txt.
This commit is contained in:
parent
f2e6d5790b
commit
cc3887c462
|
@ -67,18 +67,19 @@ void cmAddTestCommand::FinalPass()
|
||||||
++it;
|
++it;
|
||||||
for (; it != m_Args.end(); ++it)
|
for (; it != m_Args.end(); ++it)
|
||||||
{
|
{
|
||||||
if(it->find(" ") != std::string::npos)
|
if((it->find(" ") != std::string::npos) &&
|
||||||
{
|
(*it->begin() != '"' || *(it->end()-1) != '"'))
|
||||||
fout << " \"" << *it << "\"";
|
{
|
||||||
}
|
fout << " \"" << *it << "\"";
|
||||||
else
|
}
|
||||||
{
|
else
|
||||||
fout << " " << *it;
|
{
|
||||||
}
|
fout << " " << *it;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
fout << ")" << std::endl;
|
fout << ")" << std::endl;
|
||||||
fout.close();
|
fout.close();
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue