summaryrefslogtreecommitdiff
path: root/apps/examples/ostest/ostest_main.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-09-26 07:04:34 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-09-26 07:04:34 -0600
commit1578974ee8aac9a58a2c91c0253883a4dbeca168 (patch)
tree23a659bc40b0709f6adcf7a3181b1b2ae456085f /apps/examples/ostest/ostest_main.c
parent5be7fd9d6d6f623f64cf4bbe626c6e7b4587bd62 (diff)
downloadpx4-nuttx-1578974ee8aac9a58a2c91c0253883a4dbeca168.tar.gz
px4-nuttx-1578974ee8aac9a58a2c91c0253883a4dbeca168.tar.bz2
px4-nuttx-1578974ee8aac9a58a2c91c0253883a4dbeca168.zip
Add a trivial test of sem_timedwait() to the OS test
Diffstat (limited to 'apps/examples/ostest/ostest_main.c')
-rw-r--r--apps/examples/ostest/ostest_main.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/apps/examples/ostest/ostest_main.c b/apps/examples/ostest/ostest_main.c
index 0d7f38f11..0f538f5e9 100644
--- a/apps/examples/ostest/ostest_main.c
+++ b/apps/examples/ostest/ostest_main.c
@@ -377,6 +377,11 @@ static int user_main(int argc, char *argv[])
printf("\nuser_main: semaphore test\n");
sem_test();
check_test_memory_usage();
+
+ printf("\nuser_main: timed semaphore test\n");
+ semtimed_test();
+ check_test_memory_usage();
+
#endif
#ifndef CONFIG_DISABLE_PTHREAD