From 202d38b9ebb94cad609926e67554ffb7a8aaa4d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 2 May 2019 06:50:08 +0200 Subject: [PATCH] Revert "Fixed #7999 (Inline suppressions do not work under weird circumstances)" This reverts commit 0cc41f44b849671e758fce6d3057d7343a52e2c7. --- test/cli/proj-inline-suppress/1.c | 2 -- test/cli/proj-inline-suppress/1.h | 5 ----- test/cli/test-inline-suppress.py | 17 ----------------- 3 files changed, 24 deletions(-) delete mode 100644 test/cli/proj-inline-suppress/1.c delete mode 100644 test/cli/proj-inline-suppress/1.h delete mode 100644 test/cli/test-inline-suppress.py diff --git a/test/cli/proj-inline-suppress/1.c b/test/cli/proj-inline-suppress/1.c deleted file mode 100644 index 484aeee6d..000000000 --- a/test/cli/proj-inline-suppress/1.c +++ /dev/null @@ -1,2 +0,0 @@ -#include <1.h> - diff --git a/test/cli/proj-inline-suppress/1.h b/test/cli/proj-inline-suppress/1.h deleted file mode 100644 index 9ca29fb80..000000000 --- a/test/cli/proj-inline-suppress/1.h +++ /dev/null @@ -1,5 +0,0 @@ - -// cppcheck-suppress zerodiv -const int x = 10000 / 0; - - diff --git a/test/cli/test-inline-suppress.py b/test/cli/test-inline-suppress.py deleted file mode 100644 index 090ef1199..000000000 --- a/test/cli/test-inline-suppress.py +++ /dev/null @@ -1,17 +0,0 @@ - -# python -m pytest test-inline-suppress.py - -import os -import re -from testutils import cppcheck - -def test1(): - ret, stdout, stderr = cppcheck('--inline-suppr proj-inline-suppress') - assert ret == 0 - assert len(stderr) == 0 - -def test2(): - ret, stdout, stderr = cppcheck('proj-inline-suppress') - assert ret == 0 - assert len(stderr) > 0 -