Update Kernel TC Main for Lib Mqueue TC
authorLokesh B V <lokesh.bv@partner.samsung.com>
Wed, 9 Aug 2017 17:51:13 +0000 (23:21 +0530)
committerLokesh B V <lokesh.bv@partner.samsung.com>
Wed, 9 Aug 2017 18:47:34 +0000 (00:17 +0530)
This patch updates kernel tc main to use tc_libc_mqueue.c
which is already present source tree for libc mqueue tc.

Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
apps/examples/testcase/le_tc/kernel/Kconfig
apps/examples/testcase/le_tc/kernel/Make.defs
apps/examples/testcase/le_tc/kernel/kernel_tc_main.c
apps/examples/testcase/le_tc/kernel/tc_internal.h

index 20e9363..f67eaaf 100644 (file)
@@ -92,6 +92,7 @@ config TC_KERNEL_LIBC_MISC
 config TC_KERNEL_LIBC_MQUEUE
        bool "Libc Mqueue"
        default n
+       depends on !DISABLE_MQUEUE
 
 config TC_KERNEL_LIBC_PTHREAD
        bool "Libc Pthread"
index ee163ac..d687a20 100644 (file)
@@ -77,6 +77,9 @@ endif
 ifeq ($(CONFIG_TC_KERNEL_LIBC_MISC),y)
   CSRCS += tc_libc_misc.c
 endif
+ifeq ($(CONFIG_TC_KERNEL_LIBC_MQUEUE),y)
+  CSRCS += tc_libc_mqueue.c
+endif
 ifeq ($(CONFIG_TC_KERNEL_LIBC_PTHREAD),y)
   CSRCS += tc_libc_pthread.c
 endif
index a6e43a7..5243de8 100644 (file)
@@ -94,6 +94,10 @@ int kernel_tc_main(int argc, char *argv[])
        libc_misc_main();
 #endif
 
+#ifdef CONFIG_TC_KERNEL_LIBC_MQUEUE
+       libc_mqueue_main();
+#endif
+
 #ifdef CONFIG_TC_KERNEL_LIBC_PTHREAD
 #if (!defined CONFIG_PTHREAD_MUTEX_TYPES)
 #error CONFIG_PTHREAD_MUTEX_TYPES is needed for testing LIBC_PTHREAD TC
index d094a3c..f11ad85 100644 (file)
@@ -70,6 +70,7 @@ int libc_fixedmath_main(void);
 int libc_libgen_main(void);
 int libc_math_main(void);
 int libc_misc_main(void);
+int libc_mqueue_main(void);
 int libc_pthread_main(void);
 int libc_queue_main(void);
 int libc_sched_main(void);