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)
llvm-svn: 359216

clang/utils/creduce-clang-crash.py

index 40d3c77..be16211 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()