diff options
Diffstat (limited to 'test/is_enabled.c')
-rw-r--r-- | test/is_enabled.c | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/test/is_enabled.c b/test/is_enabled.c deleted file mode 100644 index fe93bafc31..0000000000 --- a/test/is_enabled.c +++ /dev/null @@ -1,35 +0,0 @@ -/* Copyright 2019 The Chromium OS Authors. All rights reserved. - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - * - * Test the IS_ENABLED macro. - */ -#include "common.h" -#include "test_util.h" - -#undef CONFIG_UNDEFINED -#define CONFIG_BLANK - -static int test_undef(void) -{ - TEST_ASSERT(IS_ENABLED(CONFIG_UNDEFINED) == 0); - - return EC_SUCCESS; -} - -static int test_blank(void) -{ - TEST_ASSERT(IS_ENABLED(CONFIG_BLANK) == 1); - - return EC_SUCCESS; -} - -void run_test(int argc, char **argv) -{ - test_reset(); - - RUN_TEST(test_undef); - RUN_TEST(test_blank); - - test_print_result(); -} |