Skip to content

Commit

Permalink
test/cli/clang-import_test.py: skip on Windows for now
Browse files Browse the repository at this point in the history
  • Loading branch information
firewave committed Jan 11, 2024
1 parent 23395e2 commit dc067e1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/cli/clang-import_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
import os
import re
import subprocess
import sys

import pytest
from testutils import cppcheck, assert_cppcheck

Expand All @@ -13,6 +15,11 @@
pytest.skip("'clang' does not exist", allow_module_level=True)


# the IDs differ with Visual Studio
if sys.platform == 'win32':
pytest.skip(allow_module_level=True)


def get_debug_section(title, stdout):
s = re.sub(r'0x[0-9a-fA-F]+', '0x12345678', stdout)
s = re.sub(r'nestedIn: Struct', 'nestedIn: Class', s)
Expand Down Expand Up @@ -129,7 +136,7 @@ def test_log(tmpdir):

args = ['--clang', test_file]
out_lines = [
'Checking {} ...'.format(test_file),
'Checking {} ...'.format(test_file).replace('\\', '/'),
]

assert_cppcheck(args, ec_exp=0, err_exp=[], out_exp=out_lines)

0 comments on commit dc067e1

Please sign in to comment.