From: Amy Huang Date: Thu, 25 Apr 2019 18:00:25 +0000 (+0000) Subject: creduce-clang-crash: add -F flag to grep to avoid interpreting string as regex X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=124debd0d25e5bc6c436a8dad803f7b8928d2b33;p=platform%2Fupstream%2Fllvm.git creduce-clang-crash: add -F flag to grep to avoid interpreting string as regex llvm-svn: 359216 --- diff --git a/clang/utils/creduce-clang-crash.py b/clang/utils/creduce-clang-crash.py index 40d3c77..be16211 100644 --- a/clang/utils/creduce-clang-crash.py +++ b/clang/utils/creduce-clang-crash.py @@ -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()