Fixed compilation errors in tests, enforce checking for errors in check_clang_tidy_fix.sh.

Reviewers: sbenza, djasper

Reviewed By: djasper

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D4480

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@212876 91177308-0d34-0410-b5e6-96231b3b80d8