summaryrefslogtreecommitdiffstats
path: root/testsuite/zerocopy01/test_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/zerocopy01/test_main.c')
-rw-r--r--testsuite/zerocopy01/test_main.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/testsuite/zerocopy01/test_main.c b/testsuite/zerocopy01/test_main.c
index 3e7b7b7b..3a03c12c 100644
--- a/testsuite/zerocopy01/test_main.c
+++ b/testsuite/zerocopy01/test_main.c
@@ -190,7 +190,7 @@ telnet_shell(char *name, void *arg)
{
rtems_shell_env_t env;
- memset(&env, 0, sizeof(env));
+ rtems_shell_dup_current_env(&env);
env.devname = name;
env.taskname = "TLNT";
@@ -240,8 +240,7 @@ test_main(void)
sc = rtems_task_start(id, network_flood_task, (rtems_task_argument) bc);
assert(sc == RTEMS_SUCCESSFUL);
- rtems_task_delete(RTEMS_SELF);
- assert(0);
+ rtems_task_exit();
}
#define DEFAULT_NETWORK_DHCPCD_ENABLE