[rtems-libbsd commit] ftpd01: Start shell only once

Sebastian Huber sebh at rtems.org
Thu Sep 18 08:35:04 UTC 2014


Module:    rtems-libbsd
Branch:    master
Commit:    4236e3d855d380807d4b338d7e0761b8562e2a1a
Changeset: http://git.rtems.org/rtems-libbsd/commit/?id=4236e3d855d380807d4b338d7e0761b8562e2a1a

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Thu Sep 18 10:43:37 2014 +0200

ftpd01: Start shell only once

---

 testsuite/ftpd01/test_main.c |   13 ++-----------
 1 files changed, 2 insertions(+), 11 deletions(-)

diff --git a/testsuite/ftpd01/test_main.c b/testsuite/ftpd01/test_main.c
index ebdd4e9..76e64f9 100644
--- a/testsuite/ftpd01/test_main.c
+++ b/testsuite/ftpd01/test_main.c
@@ -67,22 +67,13 @@ struct rtems_ftpd_configuration rtems_ftpd_configuration = {
 static void
 test_main(void)
 {
-	rtems_status_code sc;
 	int rv;
 
 	rv = rtems_initialize_ftpd();
 	assert(rv == 0);
 
-	sc = rtems_shell_init(
-		"SHLL",
-		32 * 1024,
-		1,
-		CONSOLE_DEVICE_NAME,
-		false,
-		true,
-		NULL
-	);
-	assert(sc == RTEMS_SUCCESSFUL);
+	rtems_task_delete(RTEMS_SELF);
+	assert(0);
 }
 
 #define DEFAULT_NETWORK_DHCPCD_ENABLE



More information about the vc mailing list