From c375f3e6fce218092b2f30ba83c319f44f711342 Mon Sep 17 00:00:00 2001 From: yintao Date: Tue, 25 Oct 2022 10:55:32 +0800 Subject: [PATCH] testing/drivertest: modify the test source code name Signed-off-by: yintao --- testing/drivertest/Makefile | 2 +- .../{cmocka_driver_simple.c => drivertest_simple.c} | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) rename testing/drivertest/{cmocka_driver_simple.c => drivertest_simple.c} (91%) diff --git a/testing/drivertest/Makefile b/testing/drivertest/Makefile index 95f0dbc3d..7eb455851 100644 --- a/testing/drivertest/Makefile +++ b/testing/drivertest/Makefile @@ -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 diff --git a/testing/drivertest/cmocka_driver_simple.c b/testing/drivertest/drivertest_simple.c similarity index 91% rename from testing/drivertest/cmocka_driver_simple.c rename to testing/drivertest/drivertest_simple.c index bac383a5f..25cee8f9b 100644 --- a/testing/drivertest/cmocka_driver_simple.c +++ b/testing/drivertest/drivertest_simple.c @@ -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[])