HEX
Server: Apache/2.4.58 (Ubuntu)
System: Linux ip-172-26-0-120 6.17.0-1009-aws #9~24.04.2-Ubuntu SMP Fri Mar 6 23:50:29 UTC 2026 x86_64
User: ubuntu (1000)
PHP: 8.3.6
Disabled: NONE
Upload Files
File: //lib/modules/7.0.0-1009-aws/build/scripts/kconfig/tests/err_transitional/__init__.py
# SPDX-License-Identifier: GPL-2.0
"""
Test that transitional symbols with invalid properties are rejected.

Transitional symbols can only have help sections. Any other properties
(default, select, depends, etc.) should cause a parser error.
"""

def test(conf):
    # This should fail with exit code 1 due to invalid transitional symbol
    assert conf.olddefconfig() == 1

    # Check that the error message is about transitional symbols
    assert conf.stderr_contains('expected_stderr')