30 lines
548 B
C
30 lines
548 B
C
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
/*
|
|
* Copyright (c) 2020 Cyril Hrubis <chrubis@suse.cz>
|
|
*
|
|
* Invalid boolean expression test.
|
|
*/
|
|
|
|
#include "tst_test.h"
|
|
|
|
static void do_test(void)
|
|
{
|
|
tst_res(TPASS, "Test passed!");
|
|
}
|
|
|
|
static const char *kconfigs[] = {
|
|
"\"CONFIG_FOO=val\"",
|
|
"CONFIG_a=1",
|
|
"CONFIG_FOO=",
|
|
"CONFIG_DEFAULT_HOSTNAME=\"(none",
|
|
"CONFIG_DEFAULT_HOSTNAME=\"(none)\"a",
|
|
"CONFIG_BROKEN=a\" | CONFIG_FOO",
|
|
"CONFIG_BROKEN=a=",
|
|
NULL
|
|
};
|
|
|
|
static struct tst_test test = {
|
|
.test_all = do_test,
|
|
.needs_kconfigs = kconfigs,
|
|
};
|