summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psxcleanup01/init.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/psxtests/psxcleanup01/init.c')
-rw-r--r--testsuites/psxtests/psxcleanup01/init.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuites/psxtests/psxcleanup01/init.c b/testsuites/psxtests/psxcleanup01/init.c
index d29a891f54..f38b48ee93 100644
--- a/testsuites/psxtests/psxcleanup01/init.c
+++ b/testsuites/psxtests/psxcleanup01/init.c
@@ -96,6 +96,15 @@ static void test_restart_with_cleanup(void)
wait_for_restart_task();
rtems_test_assert(restart_cleanup_arg == 1);
+
+ wait_for_restart_task();
+
+ sc = rtems_task_delete(id);
+ rtems_test_assert(sc == RTEMS_SUCCESSFUL);
+
+ wait_for_restart_task();
+
+ rtems_test_assert(restart_cleanup_arg == 2);
}
static void cleaner(void *arg)