Skip to content

Commit

Permalink
Merge pull request Ericsson#4339 from noraz31/disable_error_checker_test
Browse files Browse the repository at this point in the history
Add test for Disable clang-diagnostic-error checker Ericsson#4325
  • Loading branch information
bruntib authored Oct 2, 2024
2 parents 2032d18 + d6616a8 commit 43a9b92
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions analyzer/tests/functional/analyze/test_analyze.py
Original file line number Diff line number Diff line change
Expand Up @@ -1316,6 +1316,22 @@ def test_invalid_compilation_database(self):

self.assertEqual(process.returncode, 1)

def test_disable_error_checker_tidy(self):
"""Make sure clang-diagnostic-error checker is disabled (PR #4325)"""
cmd = [self._codechecker_cmd, "check", "-l", self.__get_build_json(),
'--enable', 'clang-diagnostic-error']

process = subprocess.Popen(
cmd,
stdout=subprocess.PIPE,
stderr=subprocess.PIPE,
cwd=self.test_dir,
encoding="utf-8",
errors="ignore")
out, _ = process.communicate()

self.assertNotIn("error", out)

def test_compilation_db_relative_file_path(self):
"""
Test relative path in compilation database.
Expand Down

0 comments on commit 43a9b92

Please sign in to comment.