Skip to content

Commit b25a644

Browse files
committed
test
1 parent 173806b commit b25a644

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/cli/premium_test.py

+5
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,11 @@ def test_misra_py(tmpdir):
122122

123123
exe = __copy_cppcheck_premium(tmpdir)
124124

125+
# ensure that misra.py is not available:
126+
_, stdout, _ = cppcheck(['--enable=style', '--addon=misra', test_file], cppcheck_exe=exe)
127+
assert 'Did not find addon misra.py' in stdout
128+
129+
# Execute misra
125130
_, stdout, _ = cppcheck(['--enable=style', '--premium=misra-c-2012', test_file], cppcheck_exe=exe)
126131
assert 'misra.py' not in stdout # Did not find misra.py
127132
assert 'Checking' in stdout

0 commit comments

Comments
 (0)