From af1a266670d040d2f4083ff309d732d648afba2a Mon Sep 17 00:00:00 2001 From: Angelos Mouzakitis Date: Tue, 10 Oct 2023 14:33:42 +0000 Subject: Add submodule dependency files Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec --- meson/test cases/common/41 test args/env2vars.c | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 meson/test cases/common/41 test args/env2vars.c (limited to 'meson/test cases/common/41 test args/env2vars.c') diff --git a/meson/test cases/common/41 test args/env2vars.c b/meson/test cases/common/41 test args/env2vars.c new file mode 100644 index 000000000..e940c9a8c --- /dev/null +++ b/meson/test cases/common/41 test args/env2vars.c @@ -0,0 +1,23 @@ +#include +#include +#include + +int main(void) { + if(strcmp(getenv("first"), "something-else") != 0) { + fprintf(stderr, "First envvar is wrong. %s\n", getenv("first")); + return 1; + } + if(strcmp(getenv("second"), "val2") != 0) { + fprintf(stderr, "Second envvar is wrong.\n"); + return 1; + } + if(strcmp(getenv("third"), "val3:and_more") != 0) { + fprintf(stderr, "Third envvar is wrong.\n"); + return 1; + } + if(strstr(getenv("PATH"), "fakepath:") != NULL) { + fprintf(stderr, "Third envvar is wrong.\n"); + return 1; + } + return 0; +} -- cgit 1.2.3-korg