Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e2c75e76 authored by Masahiro Yamada's avatar Masahiro Yamada
Browse files

kconfig: tests: test if recursive inclusion is detected



If recursive inclusion is detected, it should fail with error
messages.  Test this.

This also tests the line numbers in the error message, fixed by
commit 5ae6fcc4 ("kconfig: fix line number in recursive inclusion
error message").

Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: default avatarUlf Magnusson <ulfalizer@gmail.com>
parent 29c434f3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
source "Kconfig.inc1"
+4 −0
Original line number Diff line number Diff line



source "Kconfig.inc2"
+3 −0
Original line number Diff line number Diff line


source "Kconfig.inc3"
+1 −0
Original line number Diff line number Diff line
source "Kconfig.inc1"
+10 −0
Original line number Diff line number Diff line
"""
Detect recursive inclusion error.

If recursive inclusion is detected, it should fail with error messages.
"""


def test(conf):
    assert conf.oldaskconfig() != 0
    assert conf.stderr_contains('expected_stderr')
Loading