1930c429aSMasahiro Yamada"""
2930c429aSMasahiro YamadaDo not write choice values to .config if the dependency is unmet.
3930c429aSMasahiro Yamada
4930c429aSMasahiro Yamada"# CONFIG_... is not set" should not be written into the .config file
5930c429aSMasahiro Yamadafor symbols with unmet dependency.
6930c429aSMasahiro Yamada
7930c429aSMasahiro YamadaThis was not working correctly for choice values because choice needs
8930c429aSMasahiro Yamadaa bit different symbol computation.
9930c429aSMasahiro Yamada
10930c429aSMasahiro YamadaThis checks that no unneeded "# COFIG_... is not set" is contained in
11930c429aSMasahiro Yamadathe .config file.
12930c429aSMasahiro Yamada
13930c429aSMasahiro YamadaRelated Linux commit: cb67ab2cd2b8abd9650292c986c79901e3073a59
14930c429aSMasahiro Yamada"""
15930c429aSMasahiro Yamada
16930c429aSMasahiro Yamada
17930c429aSMasahiro Yamadadef test(conf):
18930c429aSMasahiro Yamada    assert conf.oldaskconfig('config', 'n') == 0
19930c429aSMasahiro Yamada    assert conf.config_matches('expected_config')
20