about summary refs log tree commit diff
path: root/REORG.TODO/stdlib/tst-putenv.c
diff options
context:
space:
mode:
Diffstat (limited to 'REORG.TODO/stdlib/tst-putenv.c')
-rw-r--r--REORG.TODO/stdlib/tst-putenv.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/REORG.TODO/stdlib/tst-putenv.c b/REORG.TODO/stdlib/tst-putenv.c
new file mode 100644
index 0000000000..47513ea42b
--- /dev/null
+++ b/REORG.TODO/stdlib/tst-putenv.c
@@ -0,0 +1,18 @@
+#include <stdio.h>
+#include <stdlib.h>
+
+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"