From 574b268e7f7a76fe3bcfe389509d9ff91227a860 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 4 Jan 2005 07:48:13 +0000 Subject: Update. * stdlib/Makefile: Add rules to build and run tst-putenv. * stdlib/tst-putenv.c: New file. * stdlib/tst-putenvmod.c: New file. --- stdlib/tst-putenv.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 stdlib/tst-putenv.c (limited to 'stdlib/tst-putenv.c') diff --git a/stdlib/tst-putenv.c b/stdlib/tst-putenv.c new file mode 100644 index 0000000..47513ea --- /dev/null +++ b/stdlib/tst-putenv.c @@ -0,0 +1,18 @@ +#include +#include + +static int +do_test (void) +{ + char *p = getenv ("SOMETHING_NOBODY_USES"); + if (p == NULL) + { + puts ("envvar not defined"); + return 1; + } + + return 0; +} + +#define TEST_FUNCTION do_test () +#include "../test-skeleton.c" -- cgit v1.1