From 124debd0d25e5bc6c436a8dad803f7b8928d2b33 Mon Sep 17 00:00:00 2001 From: Amy Huang Date: Thu, 25 Apr 2019 18:00:25 +0000 Subject: [PATCH] creduce-clang-crash: add -F flag to grep to avoid interpreting string as regex llvm-svn: 359216 --- clang/utils/creduce-clang-crash.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.7.4