diff options
author | Gregory Nutt <gnutt@nuttx.org> | 2014-10-05 13:24:03 -0600 |
---|---|---|
committer | Gregory Nutt <gnutt@nuttx.org> | 2014-10-05 13:24:03 -0600 |
commit | 2d40a0abccff7e3fde736c72c3b55f949ca7b0e9 (patch) | |
tree | aad20f8d56cfa7776dc2abbbc16a3e7555af5b56 /apps/examples/ostest/ostest_main.c | |
parent | b7d9b699cb5310a2be1196c73495f827608285b4 (diff) | |
download | px4-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.c | 11 |
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 */ |