mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-09-10 02:36:32 +00:00
testing/drivertest: modify the test source code name
Signed-off-by: yintao <yintao@xiaomi.com>
This commit is contained in:
parent
0a9b58ff88
commit
c375f3e6fc
2 changed files with 7 additions and 7 deletions
|
|
@ -25,7 +25,7 @@ STACKSIZE = $(CONFIG_TESTING_DRIVER_TEST_STACKSIZE)
|
|||
MODULE = $(CONFIG_TESTING_DRIVER_TEST)
|
||||
|
||||
ifneq ($(CONFIG_TESTING_DRIVER_TEST_SIMPLE),)
|
||||
MAINSRC += cmocka_driver_simple.c
|
||||
MAINSRC += drivertest_simple.c
|
||||
PROGNAME += cmocka_driver_simple
|
||||
endif
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
/****************************************************************************
|
||||
* apps/testing/drivertest/cmocka_driver_simple.c
|
||||
* apps/testing/drivertest/drivertest_simple.c
|
||||
*
|
||||
* Licensed to the Apache Software Foundation (ASF) under one or more
|
||||
* contributor license agreements. See the NOTICE file distributed with
|
||||
|
|
@ -31,15 +31,15 @@
|
|||
* Private Functions
|
||||
****************************************************************************/
|
||||
|
||||
static void test_case_01(void **state)
|
||||
static void test_case_01(FAR void **state)
|
||||
{
|
||||
(void) state;
|
||||
UNUSED(state);
|
||||
assert_int_equal(0, 0);
|
||||
}
|
||||
|
||||
static void test_case_02(void **state)
|
||||
static void test_case_02(FAR void **state)
|
||||
{
|
||||
(void)state;
|
||||
UNUSED(state);
|
||||
assert_string_not_equal("hello", "world");
|
||||
}
|
||||
|
||||
|
|
@ -48,7 +48,7 @@ static void test_case_02(void **state)
|
|||
****************************************************************************/
|
||||
|
||||
/****************************************************************************
|
||||
* cmocka_driver_simple_main
|
||||
* drivertest_simple_main
|
||||
****************************************************************************/
|
||||
|
||||
int main(int argc, FAR char *argv[])
|
||||
Loading…
Add table
Add a link
Reference in a new issue