[cmake-developers] [CMake 0012953]: Make sure argument passed to CTest are not modified

Mantis Bug Tracker mantis at public.kitware.com
Thu Feb 9 18:38:47 EST 2012


The following issue has been SUBMITTED. 
====================================================================== 
http://www.cmake.org/Bug/view.php?id=12953 
====================================================================== 
Reported By:                Jean-Christophe Fillion-Robin
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   12953
Category:                   CTest
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2012-02-09 18:38 EST
Last Modified:              2012-02-09 18:38 EST
====================================================================== 
Summary:                    Make sure argument passed to CTest are not modified
Description: 
In the "steps to reproduce", we can read:

  Reading Script: /home/jchris/Projects/sandbox/foo.cmake,url##http:/cmake.org

whereas the following is expected:

  Reading Script: /home/jchris/Projects/sandbox/foo.cmake,url##http://cmake.org

It seems the problem occurs in cmCTestScriptHandler line 186. Calling
"CollapseFullPath" on the string "/path/to/ctestscript.cmake,arguments" probably
causes the arguments to be modified. 

See
http://cmake.org/gitweb?p=cmake.git;a=blob;f=Source/CTest/cmCTestScriptHandler.cxx;h=5841b8d42bd3873ccdbeaee25349b103bf89eb18;hb=HEAD#l186

Steps to Reproduce: 
jchris at karakoram:~/Projects/sandbox $ ctest -S foo.cmake,url##http://cmake.org
-VV
* Extra verbosity turned on
Reading Script: /home/jchris/Projects/sandbox/foo.cmake,url##http:/cmake.org
CMake Error: Cannot find file: /home/jchris/Projects/sandbox/foo.cmake
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2012-02-09 18:38 Jean-Christophe Fillion-RobinNew Issue                         
          
======================================================================




More information about the cmake-developers mailing list