1.1 --- a/tests/dstest_exec.cc Tue Feb 28 22:35:25 2023 +0100
1.2 +++ b/tests/dstest_exec.cc Tue Feb 28 22:40:02 2023 +0100
1.3 @@ -23,9 +23,7 @@
1.4 #include <l4/sys/err.h>
1.5 #include <l4/util/util.h>
1.6
1.7 -#include <fsclient/client.h>
1.8 #include <fsclient/process.h>
1.9 -#include <systypes/fcntl.h>
1.10 #include <systypes/format.h>
1.11
1.12 #include <stdio.h>
1.13 @@ -42,26 +40,13 @@
1.14 return 1;
1.15 }
1.16
1.17 - char *program_filename = argv[1];
1.18 -
1.19 - file_t *program_file = client_open(program_filename, O_RDONLY);
1.20 -
1.21 - if (!client_opened(program_file))
1.22 - {
1.23 - printf("Could not open program file.\n");
1.24 - return 1;
1.25 - }
1.26 -
1.27 /* Create a new process structure. */
1.28
1.29 process_t *process = process_new();
1.30
1.31 /* Start a process for the given program. */
1.32
1.33 - err = process_start(process, program_file);
1.34 -
1.35 - /* NOTE: Need to be able to send arguments, which would be sent via a context,
1.36 - although capabilities could be sent via arguments. */
1.37 + err = process_start(process, argc - 1, argv + 1);
1.38
1.39 if (err)
1.40 {