summaryrefslogtreecommitdiff
path: root/nuttx/examples/ostest/main.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-29 23:44:55 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2007-03-29 23:44:55 +0000
commit11020b0eec6061214b2c2e8f7b0d7597faadefde (patch)
tree8ebd643a412c28399bd619673ae4d9e2207c15c7 /nuttx/examples/ostest/main.c
parentc8604fef7bb4043e36726d7eeaa6afd068012334 (diff)
downloadpx4-nuttx-11020b0eec6061214b2c2e8f7b0d7597faadefde.tar.gz
px4-nuttx-11020b0eec6061214b2c2e8f7b0d7597faadefde.tar.bz2
px4-nuttx-11020b0eec6061214b2c2e8f7b0d7597faadefde.zip
Add timed mqueue test.
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@179 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/examples/ostest/main.c')
-rw-r--r--nuttx/examples/ostest/main.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/nuttx/examples/ostest/main.c b/nuttx/examples/ostest/main.c
index c06ab86df..30dd8c926 100644
--- a/nuttx/examples/ostest/main.c
+++ b/nuttx/examples/ostest/main.c
@@ -237,7 +237,7 @@ static int user_main(int argc, char *argv[])
check_test_memory_usage();
#endif
-#if !defined(CONFIG_DISABLE_SIGNALS) && !defined(CONFIG_DISABLE_PTHREAD)
+#if !defined(CONFIG_DISABLE_SIGNALS) && !defined(CONFIG_DISABLE_PTHREAD) && !defined(CONFIG_DISABLE_CLOCK)
/* Verify pthreads and condition variable timed waits */
printf("\nuser_main: timed wait test\n");
@@ -253,6 +253,14 @@ static int user_main(int argc, char *argv[])
check_test_memory_usage();
#endif
+#if !defined(CONFIG_DISABLE_MQUEUE) && !defined(CONFIG_DISABLE_PTHREAD) && !defined(CONFIG_DISABLE_CLOCK)
+ /* Verify pthreads and message queues */
+
+ printf("\nuser_main: timed message queue test\n");
+ timedmqueue_test();
+ check_test_memory_usage();
+#endif
+
#ifndef CONFIG_DISABLE_SIGNALS
/* Verify signal handlers */