2019-05-03 20:19:28 +02:00
|
|
|
|
|
|
|
# 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
|
2019-05-07 19:15:31 +02:00
|
|
|
# TODO assert len(stderr) == 0
|
2019-05-03 20:19:28 +02:00
|
|
|
|
|
|
|
def test2():
|
|
|
|
ret, stdout, stderr = cppcheck('proj-inline-suppress')
|
|
|
|
assert ret == 0
|
|
|
|
assert len(stderr) > 0
|
|
|
|
|