Skip to content
  • Modestas Vainius's avatar
    Tests: Escape metachars before embedding paths into the regex (#12999) · f5cf8f98
    Modestas Vainius authored and Brad King's avatar Brad King committed
    ${CMake_SOURCE_DIR} and ${CMake_BINARY_DIR} cannot be embedded into regex
    directly. If they contain special regex metacharacters like +, the regex
    will break. So just escape such metacharacters with a backslash before
    embedding the path into the regex.
    
    The issue affected the following tests: CTestTestConfigFileInBuildDir1 and
    CTestTestConfigFileInBuildDir2.
    f5cf8f98