r359216 - creduce-clang-crash: add -F flag to grep to avoid interpreting string as regex
Amy Huang via cfe-commits
cfe-commits at lists.llvm.org
Thu Apr 25 11:00:26 PDT 2019
Author: akhuang
Date: Thu Apr 25 11:00:25 2019
New Revision: 359216
URL: http://llvm.org/viewvc/llvm-project?rev=359216&view=rev
Log:
creduce-clang-crash: add -F flag to grep to avoid interpreting string as regex
Modified:
cfe/trunk/utils/creduce-clang-crash.py
Modified: cfe/trunk/utils/creduce-clang-crash.py
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/utils/creduce-clang-crash.py?rev=359216&r1=359215&r2=359216&view=diff
==============================================================================
--- cfe/trunk/utils/creduce-clang-crash.py (original)
+++ cfe/trunk/utils/creduce-clang-crash.py Thu Apr 25 11:00:25 2019
@@ -187,7 +187,7 @@ class Reduce(object):
(pipes.quote(not_cmd), crash_flag, quote_cmd(self.get_crash_cmd()))
for msg in self.expected_output:
- output += 'grep %s t.log || exit 1\n' % pipes.quote(msg)
+ output += 'grep -F %s t.log || exit 1\n' % pipes.quote(msg)
write_to_script(output, self.testfile)
self.check_interestingness()
More information about the cfe-commits
mailing list