[PATCH 2/2] samples/fileio: Add login and custom device name for better testing of the shell.

Christian Mauderer christian.mauderer at embedded-brains.de
Wed Mar 19 11:54:22 UTC 2014


From: Christian Mauderer <Christian.Mauderer at embedded-brains.de>

---
 testsuites/samples/fileio/init.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/testsuites/samples/fileio/init.c b/testsuites/samples/fileio/init.c
index 80da4ab..2a0f9db 100644
--- a/testsuites/samples/fileio/init.c
+++ b/testsuites/samples/fileio/init.c
@@ -708,10 +708,11 @@ static void fileio_start_shell(void)
     "SHLL",                          /* task_name */
     RTEMS_MINIMUM_STACK_SIZE * 4,    /* task_stacksize */
     100,                             /* task_priority */
-    "/dev/console",                  /* devname */
+    "/dev/foobar",                   /* devname */
+    /* device is currently ignored by the shell if it is not a pty */
     false,                           /* forever */
     true,                            /* wait */
-    NULL                             /* login */
+    rtems_shell_login_check          /* login */
   );
 }
 #endif /* USE_SHELL */
-- 
1.8.4.5




More information about the devel mailing list