diff --git a/testsuites/unittest/posix/src/ctype/ctype_func_test.c b/testsuites/unittest/posix/src/ctype/ctype_func_test.c index 6e808b0b324997d9c48c117aafde9f40dd5ec77d..98c2497ad17df6c0ee904f4f62227b850e7f1a5a 100644 --- a/testsuites/unittest/posix/src/ctype/ctype_func_test.c +++ b/testsuites/unittest/posix/src/ctype/ctype_func_test.c @@ -47,25 +47,6 @@ */ LITE_TEST_SUIT(Posix, Posixctype, PosixCtypeFuncTestSuite); -/* * - * @tc.setup : setup for all testcases - * @return : setup result, TRUE is success, FALSE is fail - */ -static BOOL PosixCtypeFuncTestSuiteSetUp(void) -{ - return TRUE; -} - -/* * - * @tc.teardown : teardown for all testcases - * @return : teardown result, TRUE is success, FALSE is fail - */ -static BOOL PosixCtypeFuncTestSuiteTearDown(void) -{ - printf("==== [ Ctype TEST ] ====\n\n"); - return TRUE; -} - /* * * @tc.number TEST_CTYPE_ISALNUM_001 * @tc.name ctype_isalnum test with not exist pid diff --git a/testsuites/unittest/posix/src/ctype/isdigit_test.c b/testsuites/unittest/posix/src/ctype/isdigit_test.c index a2291e5958c2b79a7f2983949a4fbcc6b16877c3..e9fdd764e52fd4dc184be717b626fb7004474ef9 100644 --- a/testsuites/unittest/posix/src/ctype/isdigit_test.c +++ b/testsuites/unittest/posix/src/ctype/isdigit_test.c @@ -45,25 +45,6 @@ */ LITE_TEST_SUIT(Posix, Posixtimer, PosixCTypeIsdigitTest); -/** - * @tc.setup : setup for all testcases - * @return : setup result, TRUE is success, FALSE is fail - */ -static BOOL PosixCTypeIsdigitTestSetUp(void) -{ - return TRUE; -} - -/** - * @tc.teardown : teardown for all testcases - * @return : teardown result, TRUE is success, FALSE is fail - */ -static BOOL PosixCTypeIsdigitTestTearDown(void) -{ - LOG("+-------------------------------------------+\n"); - return TRUE; -} - /** * @tc.number : TEST_CTYPE_ISDIGIT_001 * @tc.name : Checks whether a parameter is a decimal digit (0-9) diff --git a/testsuites/unittest/posix/src/ctype/islower_test.c b/testsuites/unittest/posix/src/ctype/islower_test.c index 4460510286872e78c2e08e03441b205839816eec..311a9461b440ad04115777f1e4900932ddc80981 100644 --- a/testsuites/unittest/posix/src/ctype/islower_test.c +++ b/testsuites/unittest/posix/src/ctype/islower_test.c @@ -45,25 +45,6 @@ */ LITE_TEST_SUIT(Posix, Posixtimer, PosixCTypeIslowerTest); -/* * - * @tc.setup : setup for all testcases - * @return : setup result, TRUE is success, FALSE is fail - */ -static BOOL PosixCTypeIslowerTestSetUp(void) -{ - return TRUE; -} - -/* * - * @tc.teardown : teardown for all testcases - * @return : teardown result, TRUE is success, FALSE is fail - */ -static BOOL PosixCTypeIslowerTestTearDown(void) -{ - LOG("+-------------------------------------------+\n"); - return TRUE; -} - /* * * @tc.number : TEST_CTYPE_ISLOWER_001 * @tc.name : Checks whether a parameter is a lowercase letter diff --git a/testsuites/unittest/posix/src/ctype/isxdigit_test.c b/testsuites/unittest/posix/src/ctype/isxdigit_test.c index 924973ea999fbf209578401f6d29290ea19a69c2..78c4784ac4cf1f0da2aed64795289c1ad0dc886c 100644 --- a/testsuites/unittest/posix/src/ctype/isxdigit_test.c +++ b/testsuites/unittest/posix/src/ctype/isxdigit_test.c @@ -45,25 +45,6 @@ */ LITE_TEST_SUIT(Posix, Posixtimer, PosixCTypeIsxdigitTest); -/* * - * @tc.setup : setup for all testcases - * @return : setup result, TRUE is success, FALSE is fail - */ -static BOOL PosixCTypeIsxdigitTestSetUp(void) -{ - return TRUE; -} - -/* * - * @tc.teardown : teardown for all testcases - * @return : teardown result, TRUE is success, FALSE is fail - */ -static BOOL PosixCTypeIsxdigitTestTearDown(void) -{ - LOG("+-------------------------------------------+\n"); - return TRUE; -} - /* * * @tc.number : TEST_CTYPE_ISXDIGIT_001 * @tc.name : Checks whether a parameter is a hexadecimal digit diff --git a/testsuites/unittest/posix/src/ctype/tolower_test.c b/testsuites/unittest/posix/src/ctype/tolower_test.c index fb2ab4cb7037bdd03534d0baa5155f25f1d43e4e..6ef2159d154d372ab657664bf0f63d6247bb0920 100644 --- a/testsuites/unittest/posix/src/ctype/tolower_test.c +++ b/testsuites/unittest/posix/src/ctype/tolower_test.c @@ -45,25 +45,6 @@ */ LITE_TEST_SUIT(Posix, Posixtimer, PosixCTypeTolowerTest); -/* * - * @tc.setup : setup for all testcases - * @return : setup result, TRUE is success, FALSE is fail - */ -static BOOL PosixCTypeTolowerTestSetUp(void) -{ - return TRUE; -} - -/* * - * @tc.teardown : teardown for all testcases - * @return : teardown result, TRUE is success, FALSE is fail - */ -static BOOL PosixCTypeTolowerTestTearDown(void) -{ - LOG("+-------------------------------------------+\n"); - return TRUE; -} - /* * * @tc.number : TEST_CTYPE_TOLOWER_001 * @tc.name : Converts an uppercase letter specified by c to its lowercase equivalent diff --git a/testsuites/unittest/posix/src/ctype/toupper_test.c b/testsuites/unittest/posix/src/ctype/toupper_test.c index bfc153fb95b2e3146fcc7328f001d4f52e20cc10..886aa6fc2a0205e80c7d0fbe599693b525793860 100644 --- a/testsuites/unittest/posix/src/ctype/toupper_test.c +++ b/testsuites/unittest/posix/src/ctype/toupper_test.c @@ -45,25 +45,6 @@ */ LITE_TEST_SUIT(Posix, Posixtimer, PosixCTypeToupperTest); -/* * - * @tc.setup : setup for all testcases - * @return : setup result, TRUE is success, FALSE is fail - */ -static BOOL PosixCTypeToupperTestSetUp(void) -{ - return TRUE; -} - -/* * - * @tc.teardown : teardown for all testcases - * @return : teardown result, TRUE is success, FALSE is fail - */ -static BOOL PosixCTypeToupperTestTearDown(void) -{ - LOG("+-------------------------------------------+\n"); - return TRUE; -} - /* * * @tc.number : TEST_CTYPE_TOUPPER_001 * @tc.name : Converts a lowercase letter to uppercase equivalent diff --git a/testsuites/unittest/posix/src/fs/posix_fs_func_test.c b/testsuites/unittest/posix/src/fs/posix_fs_func_test.c index d980df5b071b34b2948efe6c341003ea92a64f35..8b01b3cfdc4860fc95d7c89c8ceade286f7ff989 100644 --- a/testsuites/unittest/posix/src/fs/posix_fs_func_test.c +++ b/testsuites/unittest/posix/src/fs/posix_fs_func_test.c @@ -79,25 +79,6 @@ LITE_TEST_SUIT(Posix, PosixFs, PosixFsFuncTestSuite); #define TEST_MODE_NORMAL 0666 #define TEST_MODE_HIGH 0777 -/* * - * @tc.setup : setup for all testcases - * @return : setup result, TRUE is success, FALSE is fail - */ -static BOOL PosixFsFuncTestSuiteSetUp(void) -{ - return TRUE; -} - -/* * - * @tc.teardown : teardown for all testcases - * @return : teardown result, TRUE is success, FALSE is fail - */ -static BOOL PosixFsFuncTestSuiteTearDown(void) -{ - printf("+-------------------------------------------+\n"); - return TRUE; -} - /* * * @tc.number SUB_KERNEL_FS_FOPEN_FCLOSE_001 * @tc.name fopen and fclose diff --git a/testsuites/unittest/posix/src/regex/regex_func_test.c b/testsuites/unittest/posix/src/regex/regex_func_test.c index a3384a8c943714117e8e8e014b6a61b095efd9bc..39ce8092c9ae7519cef77f46d43383608375e357 100644 --- a/testsuites/unittest/posix/src/regex/regex_func_test.c +++ b/testsuites/unittest/posix/src/regex/regex_func_test.c @@ -49,30 +49,6 @@ */ LITE_TEST_SUIT(Posix, PosixRegexTest, PosixRegexFuncTestSuite); -/* * - * @tc.setup : setup for all testcases - * @return : setup result, TRUE is success, FALSE is fail - */ -static BOOL PosixRegexFuncTestSuiteSetUp(void) -{ - LOG("+-------------------------------------------+\n"); - LOG("+--------PosixRegexFuncTestSuiteSetUp-------+\n"); - LOG("+-------------------------------------------+\n"); - return TRUE; -} - -/* * - * @tc.teardown : teardown for all testcases - * @return : teardown result, TRUE is success, FALSE is fail - */ -static BOOL PosixRegexFuncTestSuiteTearDown(void) -{ - LOG("+-------------------------------------------+\n"); - LOG("+-------PosixRegexFuncTestSuiteTearDown-----+\n"); - LOG("+-------------------------------------------+\n"); - return TRUE; -} - int TestRegex(int flag, const char *pattern, const char *buf, const int expectedStatus, const char *expectedRes) { regmatch_t pmatch[1]; diff --git a/testsuites/unittest/posix/src/semaphore/semaphore_func_test.c b/testsuites/unittest/posix/src/semaphore/semaphore_func_test.c index b44533fe520c19d8abdd568ae0c6db498144f1ba..70c4ec0c3b6db182bd32b8fdc81db4729fe0f737 100644 --- a/testsuites/unittest/posix/src/semaphore/semaphore_func_test.c +++ b/testsuites/unittest/posix/src/semaphore/semaphore_func_test.c @@ -49,25 +49,6 @@ */ LITE_TEST_SUIT(Posix, PosixSemaphore, PosixSemaphoreFuncTestSuite); -/* * - * @tc.setup : setup for all testcases - * @return : setup result, TRUE is success, FALSE is fail - */ -static BOOL PosixSemaphoreFuncTestSuiteSetUp(void) -{ - return TRUE; -} - -/* * - * @tc.teardown : teardown for all testcases - * @return : teardown result, TRUE is success, FALSE is fail - */ -static BOOL PosixSemaphoreFuncTestSuiteTearDown(void) -{ - LOG("+-------------------------------------------+\n"); - return TRUE; -} - // get cur-time plus ms struct timespec GetDelayedTime(unsigned int ms) { diff --git a/testsuites/unittest/posix/src/stdarg/stdarg_func_test.c b/testsuites/unittest/posix/src/stdarg/stdarg_func_test.c index 2e1429041cbd65b0367d218e8d039bed1e07b324..42f4967ed0cee536e52b6738af7f0cf017b41e7d 100644 --- a/testsuites/unittest/posix/src/stdarg/stdarg_func_test.c +++ b/testsuites/unittest/posix/src/stdarg/stdarg_func_test.c @@ -48,26 +48,6 @@ */ LITE_TEST_SUIT(Posix, Posixtimer, PosixStdargFuncTestSuite); -/* * - * @tc.setup : setup for all testcases - * @return : setup result, TRUE is success, FALSE is fail - */ -static BOOL PosixStdargFuncTestSuiteSetUp(void) -{ - return TRUE; -} - -/* * - * @tc.teardown : teardown for all testcases - * @return : teardown result, TRUE is success, FALSE is fail - */ -static BOOL PosixStdargFuncTestSuiteTearDown(void) -{ - printf("==== [ Stdarg TEST ] ====\n\n"); - return TRUE; -} - - int VaFunc(int argsNum, ...) { va_list vaP1; diff --git a/testsuites/unittest/posix/src/stdlib/atol_test.c b/testsuites/unittest/posix/src/stdlib/atol_test.c index 1568fd55fd7e77276da43b137b68f79a79f7501c..010f4869caf8dc8de12c44f6bfb04aaa5095eab2 100644 --- a/testsuites/unittest/posix/src/stdlib/atol_test.c +++ b/testsuites/unittest/posix/src/stdlib/atol_test.c @@ -46,25 +46,6 @@ */ LITE_TEST_SUIT(Posix, Posixtimer, PosixStdlibAtolTest); -/* * - * @tc.setup : setup for all testcases - * @return : setup result, TRUE is success, FALSE is fail - */ -static BOOL PosixStdlibAtolTestSetUp(void) -{ - return TRUE; -} - -/* * - * @tc.teardown : teardown for all testcases - * @return : teardown result, TRUE is success, FALSE is fail - */ -static BOOL PosixStdlibAtolTestTearDown(void) -{ - LOG("+-------------------------------------------+\n"); - return TRUE; -} - /* * * @tc.number : TEST_STDLIB_ATOL_001 * @tc.name : convert string to long integer diff --git a/testsuites/unittest/posix/src/string/memory_func_test.c b/testsuites/unittest/posix/src/string/memory_func_test.c index 81f1bb62da0dbd46bb895ad0a6bf6d7df0c88d47..36f5d33a055d417915be3dea96b1a83d87d73dc2 100644 --- a/testsuites/unittest/posix/src/string/memory_func_test.c +++ b/testsuites/unittest/posix/src/string/memory_func_test.c @@ -45,26 +45,6 @@ */ LITE_TEST_SUIT(Posix, PosixMemory, PosixMemFuncTestSuite); - -/* * - * @tc.setup : setup for all testcases - * @return : setup result, TRUE is success, FALSE is fail - */ -static BOOL PosixMemFuncTestSuiteSetUp(void) -{ - return TRUE; -} - -/* * - * @tc.teardown : teardown for all testcases - * @return : teardown result, TRUE is success, FALSE is fail - */ -static BOOL PosixMemFuncTestSuiteTearDown(void) -{ - printf("+Hello this is a memory function test+\n"); - return TRUE; -} - /* * * @tc.number : SUB_KERNEL_POSIX_MEMCPY_OPERATION_001 * @tc.name : Memony operation for memcpy test diff --git a/testsuites/unittest/posix/src/string/strchr_test.c b/testsuites/unittest/posix/src/string/strchr_test.c index f5a95eff207209facb6d2e4e973ea196ce6dec2d..071e3d8e7d2be7f4474d47dfde9a3d30142fd8a4 100644 --- a/testsuites/unittest/posix/src/string/strchr_test.c +++ b/testsuites/unittest/posix/src/string/strchr_test.c @@ -46,25 +46,6 @@ */ LITE_TEST_SUIT(Posix, Posixtimer, PosixStringStrchrTest); -/* * - * @tc.setup : setup for all testcases - * @return : setup result, TRUE is success, FALSE is fail - */ -static BOOL PosixStringStrchrTestSetUp(void) -{ - return TRUE; -} - -/* * - * @tc.teardown : teardown for all testcases - * @return : teardown result, TRUE is success, FALSE is fail - */ -static BOOL PosixStringStrchrTestTearDown(void) -{ - LOG("+-------------------------------------------+\n"); - return TRUE; -} - /* * * @tc.number : TEST_STRING_STRCHR_001 * @tc.name : find the first occurrence of a character in a string diff --git a/testsuites/unittest/posix/src/string/string_func_test_01.c b/testsuites/unittest/posix/src/string/string_func_test_01.c index e9ec2f706aabf1d27980543d794c25c1fe8240e9..0b4641b6dab5ff7d9b6bafe51a575ec75a67da04 100644 --- a/testsuites/unittest/posix/src/string/string_func_test_01.c +++ b/testsuites/unittest/posix/src/string/string_func_test_01.c @@ -46,25 +46,6 @@ */ LITE_TEST_SUIT(Posix, Posixtimer, PosixStringFuncTestSuite); -/* * - * @tc.setup : setup for all testcases - * @return : setup result, TRUE is success, FALSE is fail - */ -static BOOL PosixStringFuncTestSuiteSetUp(void) -{ - return TRUE; -} - -/* * - * @tc.teardown : teardown for all testcases - * @return : teardown result, TRUE is success, FALSE is fail - */ -static BOOL PosixStringFuncTestSuiteTearDown(void) -{ - printf("==== [ String TEST ] ====\n\n"); - return TRUE; -} - /* * * @tc.number TEST_STRING_STRLEN_001 * @tc.name string_strlen error test with not exist pid diff --git a/testsuites/unittest/posix/src/string/string_func_test_02.c b/testsuites/unittest/posix/src/string/string_func_test_02.c index 31800f3b7ecdc01c64b390444925d45c70c3ad71..0a036656e280af011b99feff240da14196e69762 100644 --- a/testsuites/unittest/posix/src/string/string_func_test_02.c +++ b/testsuites/unittest/posix/src/string/string_func_test_02.c @@ -48,30 +48,6 @@ */ LITE_TEST_SUIT(Posix, PosixStrings, PosixStringsFuncTestSuite); -/* * - * @tc.setup : setup for all testcases - * @return : setup result, TRUE is success, FALSE is fail - */ -static BOOL PosixStringsFuncTestSuiteSetUp(void) -{ - LOG("+-------------------------------------------+\n"); - LOG("+------PosixStringsFuncTestSuiteSetUp-------+\n"); - LOG("+-------------------------------------------+\n"); - return TRUE; -} - -/* * - * @tc.teardown : teardown for all testcases - * @return : teardown result, TRUE is success, FALSE is fail - */ -static BOOL PosixStringsFuncTestSuiteTearDown(void) -{ - LOG("+-------------------------------------------+\n"); - LOG("+-----PosixStringsFuncTestSuiteTearDown-----+\n"); - LOG("+-------------------------------------------+\n"); - return TRUE; -} - /* * * @tc.number SUB_KERNEL_IO_STRINGS_0100 * @tc.name strcasecmp basic function test diff --git a/testsuites/unittest/posix/src/string/string_func_test_03.c b/testsuites/unittest/posix/src/string/string_func_test_03.c index b57737b6559dfd2c93f99ae728c38457355853e1..b61b24e31170781f57864ad7e560d259b7f2da42 100644 --- a/testsuites/unittest/posix/src/string/string_func_test_03.c +++ b/testsuites/unittest/posix/src/string/string_func_test_03.c @@ -46,26 +46,6 @@ */ LITE_TEST_SUIT(Posix, Posixstring, PosixStringFuncTestSuite); - -/* * - * @tc.setup : setup for all testcases - * @return : setup result, TRUE is success, FALSE is fail - */ -static BOOL PosixStringFuncTestSuiteSetUp(void) -{ - return TRUE; -} - -/* * - * @tc.teardown : teardown for all testcases - * @return : teardown result, TRUE is success, FALSE is fail - */ -static BOOL PosixStringFuncTestSuiteTearDown(void) -{ - printf("+Hello this is a String function test+\n"); - return TRUE; -} - /* * * @tc.number : SUB_KERNEL_POSIX_STRING_OPERATION_001 * @tc.name : Memony operation for strcmp test diff --git a/testsuites/unittest/posix/src/time/time_func_test_01.c b/testsuites/unittest/posix/src/time/time_func_test_01.c index bc980f0493a5eaddeac6303db7474f178091e4d5..e4d9a04fb6a00fe81303891bd893e414a2cf6dab 100644 --- a/testsuites/unittest/posix/src/time/time_func_test_01.c +++ b/testsuites/unittest/posix/src/time/time_func_test_01.c @@ -73,24 +73,6 @@ */ LITE_TEST_SUIT(Posix, PosixTime, PosixTimeFuncTestSuite); -/* * - * @tc.setup : setup for all testcases - * @return : setup result, TRUE is success, FALSE is fail - */ -static BOOL PosixTimeFuncTestSuiteSetUp(void) -{ - return TRUE; -} - -/* * - * @tc.teardown : teardown for all testcases - * @return : teardown result, TRUE is success, FALSE is fail - */ -static BOOL PosixTimeFuncTestSuiteTearDown(void) -{ - return TRUE; -} - static int KeepRun(int msec) { struct timespec time1 = { 0, 0 };