# HG changeset patch # User Paul Boddie # Date 1717165872 -7200 # Node ID 33abc5ea640fc306a08b487bc35627dc872a200d # Parent 09edc4cd60ce405bfafb16830da93816cd2e1767 Adjusted test output and introduced header inclusion for the new functions. diff -r 09edc4cd60ce -r 33abc5ea640f test_files/programs/test_popenv.c --- a/test_files/programs/test_popenv.c Thu May 30 22:29:00 2024 +0200 +++ b/test_files/programs/test_popenv.c Fri May 31 16:31:12 2024 +0200 @@ -23,12 +23,7 @@ #include #include #include - - - -/* NOTE: To be provided via a header. */ - -extern pid_t popenv(int, const char *[], FILE **input, FILE **output, FILE **error); +#include @@ -60,6 +55,7 @@ pid_t pid; port_t port; event_source_t source; + event_values_t result; if (argc < 2) { @@ -124,6 +120,7 @@ if (error != NULL) transfer(error, stderr); + result = port_source_event_values(source); break; } } @@ -134,6 +131,7 @@ if (error != NULL) fclose(error); + printf("Result: %ld\n", result.val); return 0; } diff -r 09edc4cd60ce -r 33abc5ea640f test_files/programs/test_systemv.c --- a/test_files/programs/test_systemv.c Thu May 30 22:29:00 2024 +0200 +++ b/test_files/programs/test_systemv.c Fri May 31 16:31:12 2024 +0200 @@ -22,10 +22,6 @@ #include #include -/* NOTE: To be provided via a header. */ - -extern int systemv(int, const char *[]); - /* List objects in the filesystem image. */