xref: /linux/scripts/kconfig/tests/err_repeated_inc/__init__.py (revision 7a5f1cd22d47f8ca4b760b6334378ae42c1bd24b)
1# SPDX-License-Identifier: GPL-2.0
2"""
3Detect repeated inclusion error.
4
5If repeated inclusion is detected, it should fail with error message.
6"""
7
8def test(conf):
9    assert conf.oldaskconfig() != 0
10    assert conf.stderr_contains('expected_stderr')
11