Browse Source

BUG: Backing out previous change until a deeper problem can be investigated.

Brad King 22 years ago
parent
commit
fc689df5d9
1 changed files with 9 additions and 10 deletions
  1. 9 10
      Source/cmAddTestCommand.cxx

+ 9 - 10
Source/cmAddTestCommand.cxx

@@ -67,19 +67,18 @@ void cmAddTestCommand::FinalPass()
     ++it;
     for (; it != m_Args.end(); ++it)
       {
-      if((it->find(" ") != std::string::npos) &&
-         (*it->begin() != '"' || *(it->end()-1) != '"'))
-        {
-        fout << " \"" << *it << "\"";
-        }
-      else
-        {
-        fout << " " << *it;
-        }
+        if(it->find(" ") != std::string::npos) 
+          {
+            fout << " \"" << *it << "\"";
+          }
+        else
+          {
+            fout << " " << *it;
+          }
       }
     fout << ")" << std::endl;
     fout.close();
-    }
+    }  
   return;
 }