]> granicus.if.org Git - clang/commitdiff
creduce-clang-crash: add -F flag to grep to avoid interpreting string as regex
authorAmy Huang <akhuang@google.com>
Thu, 25 Apr 2019 18:00:25 +0000 (18:00 +0000)
committerAmy Huang <akhuang@google.com>
Thu, 25 Apr 2019 18:00:25 +0000 (18:00 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@359216 91177308-0d34-0410-b5e6-96231b3b80d8

utils/creduce-clang-crash.py

index 40d3c77b4664ee3c26d010ac815f28b5415980eb..be16211c4da61a0b47d1093d186e47d15ab8b726 100644 (file)
@@ -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()