diff options
author | Philip Chimento <philip.chimento@gmail.com> | 2019-12-10 13:22:05 -0800 |
---|---|---|
committer | Philip Chimento <philip.chimento@gmail.com> | 2019-12-16 15:26:29 -0500 |
commit | aa19a533cb55d1fcaa8d47429aba2fd1372defd8 (patch) | |
tree | c107d4e64e1056bf0d6aa10b7ca74f9e05987b02 /tests | |
parent | 80455713d6f37d22c35f8a04dc75bd4495789691 (diff) |
clang-plugin: Require LLVM 4.0 or later
Remove all the guards that checked for earlier versions.
See: #5
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/wrapper-compiler-errors | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/tests/wrapper-compiler-errors b/tests/wrapper-compiler-errors index a9c5024..941024a 100755 --- a/tests/wrapper-compiler-errors +++ b/tests/wrapper-compiler-errors @@ -109,20 +109,11 @@ while [[ -f `printf "${temp_dir}/${input_filename}_%02d.c" ${num}` ]]; do while read line do - # Check the string and the string with ‘which’ for - # ‘that’ against the actual errors. This is a hack - # needed to support testing against LLVM 3.4 and 3.5 - # from the same test vectors. - # - # See commit 0743df4033967c18a5009e4f01ccf709f7c06c86 - # for details. + # Check the string against the actual errors. grep -F "${line}" "${actual_error_filename}" >/dev/null - grep_status1=$? + grep_status=$? - grep -F "${line//that/which}" "${actual_error_filename}" >/dev/null - grep_status2=$? - - if [ $grep_status1 -ne 0 -a $grep_status2 -ne 0 ]; then + if [ $grep_status -ne 0 ]; then echo " * Non-matching line:" 1>&2 echo "${line}" 1>&2 grep_failed=1 |