xref: /linux/scripts/kconfig/tests/err_num_bounds/__init__.py (revision bb29b957eaaa15be33243550d9ee576c2d601669)
1# SPDX-License-Identifier: GPL-2.0
2"""
3Detect constants outside the 'int' and 'hex' bounds.
4
5An int constant must fit in a signed 64-bit integer, and a hex constant must
6fit in an unsigned 64-bit integer.
7"""
8
9
10def test(conf):
11    assert conf.olddefconfig() == 1
12    assert conf.stderr_matches('expected_stderr')
13