1.1 --- a/tests/dstest_exec.cc Sat Dec 09 22:12:34 2023 +0100
1.2 +++ b/tests/dstest_exec.cc Sat Dec 09 22:12:58 2023 +0100
1.3 @@ -30,19 +30,11 @@
1.4
1.5 static long test_process(int argc, const char *argv[])
1.6 {
1.7 - /* Obtain the common notifier. */
1.8 -
1.9 - notifier_t *notifier = notify_get_task();
1.10 -
1.11 - /* Create a new process structure. */
1.12 -
1.13 - process_t process;
1.14 -
1.15 - process_init(&process);
1.16 + process_t *process;
1.17
1.18 /* Start the process. */
1.19
1.20 - long err = process_start(&process, argc, argv);
1.21 + long err = process_spawn(argc, argv, &process);
1.22
1.23 if (err)
1.24 {
1.25 @@ -52,19 +44,12 @@
1.26
1.27 printf("Finished program initiation.\n");
1.28
1.29 - /* Subscribe to the process for notifications. */
1.30 -
1.31 - err = notify_subscribe(process_notifiable(&process), NOTIFY_TASK_ALL, notifier);
1.32 -
1.33 - if (err)
1.34 - {
1.35 - printf("Could not subscribe to process: %s\n", l4sys_errtostr(err));
1.36 - return err;
1.37 - }
1.38 -
1.39 /* Wait for a signal from the process. */
1.40
1.41 - err = process_notify_wait_process(&process, notifier);
1.42 + notify_flags_t flags;
1.43 + notify_values_t values;
1.44 +
1.45 + err = process_wait(process, &flags, &values);
1.46
1.47 if (err)
1.48 {
1.49 @@ -72,14 +57,8 @@
1.50 return err;
1.51 }
1.52
1.53 - notify_flags_t flags = process_notifications(&process);
1.54 - notify_values_t values = process_notification_values(&process);
1.55 -
1.56 printf("End process (flags %" pFMTnotify_flags "x values: %ld, %ld)\n", flags, values.sig, values.val);
1.57 -
1.58 - err = process_error(&process);
1.59 - process_close(&process);
1.60 - return err;
1.61 + return L4_EOK;
1.62 }
1.63
1.64