summaryrefslogtreecommitdiff
path: root/apps/examples/ostest/ostest_main.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-10-05 13:24:03 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-10-05 13:24:03 -0600
commit2d40a0abccff7e3fde736c72c3b55f949ca7b0e9 (patch)
treeaad20f8d56cfa7776dc2abbbc16a3e7555af5b56 /apps/examples/ostest/ostest_main.c
parentb7d9b699cb5310a2be1196c73495f827608285b4 (diff)
downloadpx4-nuttx-2d40a0abccff7e3fde736c72c3b55f949ca7b0e9.tar.gz
px4-nuttx-2d40a0abccff7e3fde736c72c3b55f949ca7b0e9.tar.bz2
px4-nuttx-2d40a0abccff7e3fde736c72c3b55f949ca7b0e9.zip
Add AIO test case in OS test
Diffstat (limited to 'apps/examples/ostest/ostest_main.c')
-rw-r--r--apps/examples/ostest/ostest_main.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/apps/examples/ostest/ostest_main.c b/apps/examples/ostest/ostest_main.c
index 4f2bf559d..0b3d37f3b 100644
--- a/apps/examples/ostest/ostest_main.c
+++ b/apps/examples/ostest/ostest_main.c
@@ -296,8 +296,9 @@ static int user_main(int argc, char *argv[])
}
#endif
- /* Check environment variables */
#ifndef CONFIG_DISABLE_ENVIRON
+ /* Check environment variables */
+
show_environment(true, true, true);
unsetenv(g_var1_name);
@@ -325,6 +326,14 @@ static int user_main(int argc, char *argv[])
check_test_memory_usage();
#endif
+#ifdef CONFIG_LIBC_AIO
+ /* Check asynchronous I/O */
+
+ printf("\nuser_main: AIO test\n");
+ aio_test();
+ check_test_memory_usage();
+#endif
+
#ifdef CONFIG_ARCH_FPU
/* Check that the FPU is properly supported during context switching */