[PATCH v2] sanitize paths used in regular expression

2016-01-15 Thread Zachary T Welch
Does this version look better? I am not sure if this the right place to put the new helper, so let me know if there is a better spot for it. gcc/testsuite/lib/ * prune.exp (prune_file_path): Sanitize path used in regex. (escape_regex_chars): New. Signed-off-by: Zachary T

[PATCH] sanitize paths used in regular expression

2016-01-14 Thread Zachary T Welch
* prune.exp (prune_file_path): Sanitize path used in regex. Signed-off-by: Zachary T Welch --- gcc/testsuite/lib/prune.exp | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gcc/testsuite/lib/prune.exp b/gcc/testsuite/lib/prune.exp index 8e4c203..3bb477c 100644 --- a/gcc/tes