1 # SPDX-License-Identifier: GPL-2.0-only 2 """ 3 Randomize choices with correct dependencies 4 5 When shuffling a choice may potentially disrupt certain dependencies, symbol 6 values must be recalculated. 7 8 Related Linux commits: 9 - c8fb7d7e48d11520ad24808cfce7afb7b9c9f798 10 """ 11 12 13 def test(conf): 14 for i in range(20): 15 assert conf.randconfig(seed=i) == 0 16 assert (conf.config_matches('expected_config0') or 17 conf.config_matches('expected_config1') or 18 conf.config_matches('expected_config2'))
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.