Renaming of things which may be, one day, exported in a lib.
This renaming is important, as it creates consistency between test
symbols, which is needed if things get eventually exported in the lib.
Also, tests are often created from other tests: Fixing the first exemples
will help geting future tests better.

Things that are candidate to be exported in the lib in the future
have been named as follows:
 -Tests, i.e. functions which are used in CUNIT testsuites are named:
    <Module>_test_*
 -Test arrays, i.e. arrays of CU_TestInfo, listing the test functions
  belonging to a suite, are called:
    <Module>_suite[_*]
  where the possible suffix can be used if many suites are declared.
 -CUNIT suite init and termination functions are called:
    <Module>_suite[_*]_init() and <Module>_suite[_*]_term()
  respectively.
 -Suite arrays, i.e. arrays of CU_SuiteInfo used in executables are called:
    <Module>_suites[_*]
  where the possible suffix identifies the executable using it, if many.
 -Main function(s), are called:
    <Module>_main[_*]
  where the possible suffix identifies the executable using it

Signed-off-by: Christophe Milard <christophe.mil...@linaro.org>
---
 test/validation/errno/errno.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/test/validation/errno/errno.c b/test/validation/errno/errno.c
index 70a6613..ac1d93c 100644
--- a/test/validation/errno/errno.c
+++ b/test/validation/errno/errno.c
@@ -7,7 +7,7 @@
 #include <odp.h>
 #include "odp_cunit_common.h"
 
-static void test_odp_errno_sunny_day(void)
+static void errno_test_odp_errno_sunny_day(void)
 {
        int my_errno;
 
@@ -18,13 +18,13 @@ static void test_odp_errno_sunny_day(void)
        CU_ASSERT_PTR_NOT_NULL(odp_errno_str(my_errno));
 }
 
-CU_TestInfo test_odp_errno[] = {
-       {"sunny day", test_odp_errno_sunny_day},
+CU_TestInfo errno_suite[] = {
+       {"sunny day", errno_test_odp_errno_sunny_day},
        CU_TEST_INFO_NULL,
 };
 
 CU_SuiteInfo errno_suites[] = {
-       {"Errno",       NULL, NULL, NULL, NULL, test_odp_errno},
+       {"Errno",       NULL, NULL, NULL, NULL, errno_suite},
        CU_SUITE_INFO_NULL,
 };
 
-- 
1.9.1

_______________________________________________
lng-odp mailing list
lng-odp@lists.linaro.org
https://lists.linaro.org/mailman/listinfo/lng-odp

Reply via email to