summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/cmAddTestCommand.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmAddTestCommand.cxx b/Source/cmAddTestCommand.cxx
index 4a2cb20..ec04928 100644
--- a/Source/cmAddTestCommand.cxx
+++ b/Source/cmAddTestCommand.cxx
@@ -72,8 +72,10 @@ void cmAddTestCommand::FinalPass()
fout << " \"";
for(std::string::iterator c = it->begin(); c != it->end(); ++c)
{
- // Escape quotes and backslashes within arguments.
- if((*c == '"') || (*c == '\\'))
+ // Escape quotes within arguments. We should escape
+ // backslashes too but we cannot because it makes the result
+ // inconsistent with previous behavior of this command.
+ if((*c == '"'))
{
fout << '\\';
}