1.1 --- a/test_files/programs/Makefile Thu May 09 17:07:06 2024 +0200
1.2 +++ b/test_files/programs/Makefile Thu May 09 21:24:58 2024 +0200
1.3 @@ -13,6 +13,6 @@
1.4
1.5 SRC_C_ls = ls.c
1.6
1.7 -REQUIRES_LIBS = libc_newlib libfsclient libsystypes libe2access
1.8 +REQUIRES_LIBS = libe2access
1.9
1.10 include $(L4DIR)/mk/prog.mk
2.1 --- a/test_files/programs/dstest_exec_payload.c Thu May 09 17:07:06 2024 +0200
2.2 +++ b/test_files/programs/dstest_exec_payload.c Thu May 09 21:24:58 2024 +0200
2.3 @@ -1,7 +1,7 @@
2.4 /*
2.5 * A test of executing code in a new task.
2.6 *
2.7 - * Copyright (C) 2022, 2023 Paul Boddie <paul@boddie.org.uk>
2.8 + * Copyright (C) 2022, 2023, 2024 Paul Boddie <paul@boddie.org.uk>
2.9 *
2.10 * This program is free software; you can redistribute it and/or
2.11 * modify it under the terms of the GNU General Public License as
2.12 @@ -20,13 +20,6 @@
2.13 */
2.14
2.15 #include <stdio.h>
2.16 -#include <string.h>
2.17 -
2.18 -/* NOTE: For inclusion in the C library. */
2.19 -
2.20 -#include <fsclient/client.h>
2.21 -#include <systypes/env.h>
2.22 -#include <systypes/fcntl.h>
2.23
2.24
2.25
2.26 @@ -34,29 +27,10 @@
2.27 {
2.28 int i;
2.29
2.30 - /* NOTE: For inclusion in the C library. */
2.31 -
2.32 - file_t *output = client_get_stream(ENV_OUTPUT_STREAM_NAME, O_WRONLY);
2.33 -
2.34 - /* Write the arguments to the output stream. */
2.35 -
2.36 - char buffer[32];
2.37 + for (i = 0; i < argc; i++)
2.38 + printf("Arg #%d: %s\n", i, argv[i]);
2.39
2.40 - for (i = 0; i < argc; i++)
2.41 - {
2.42 - sprintf(buffer, "Arg #%d: ", i);
2.43 - client_write(output, buffer, strlen(buffer));
2.44 - client_write(output, argv[i], strlen(argv[i]));
2.45 - client_write(output, "\n", 1);
2.46 - }
2.47 -
2.48 - client_write(output, "Terminating.\n", 13);
2.49 -
2.50 - /* NOTE: For inclusion in the C library. */
2.51 -
2.52 - client_flush(output);
2.53 -
2.54 - /* NOTE: To test process completion, the output stream is left open. */
2.55 + printf("Terminating.\n");
2.56
2.57 return 0;
2.58 }