1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Copyright (c) 2020 Cyril Hrubis <chrubis@suse.cz>
4 *
5 * Invalid boolean expression test.
6 */
7
8#include "tst_test.h"
9
10static void do_test(void)
11{
12	tst_res(TPASS, "Test passed!");
13}
14
15static const char *kconfigs[] = {
16	"\"CONFIG_FOO=val\"",
17	"CONFIG_a=1",
18	"CONFIG_FOO=",
19	"CONFIG_DEFAULT_HOSTNAME=\"(none",
20	"CONFIG_DEFAULT_HOSTNAME=\"(none)\"a",
21	"CONFIG_BROKEN=a\" | CONFIG_FOO",
22	"CONFIG_BROKEN=a=",
23	NULL
24};
25
26static struct tst_test test = {
27	.test_all = do_test,
28	.needs_kconfigs = kconfigs,
29};
30