From b5c69d99130e6f70505c353a5eddd3405dda3108 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 20 Sep 1999 02:18:14 +0000 Subject: Update. 1999-09-19 Ulrich Drepper * po/pl.po: Updated. 1999-09-17 Andreas Schwab * Makefile (clean): Also remove $(postclean) files. 1999-09-15 Andreas Jaeger * pwd/Makefile (otherlibs): Add for building with static-nss. * inet/Makefile (otherlibs): Likewise. 1999-09-15 Andreas Jaeger * sysdeps/generic/aio_sigqueue.c (__aio_sigqueue): Use old style function definition to avoid a compilation failure. 1999-09-15 Andreas Jaeger * stdlib/tst-environ.c (main): Add getenv regression test for environment variable that's one character long. 1999-09-15 Andreas Jaeger * sysdeps/unix/sysv/linux/i386/sigaction.c: Protect real time signal definitions to let glibc compile with older Linux versions (2.0.10 to 2.1.100 or so). --- stdlib/tst-environ.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'stdlib') diff --git a/stdlib/tst-environ.c b/stdlib/tst-environ.c index 4d17634b52..f728ce5890 100644 --- a/stdlib/tst-environ.c +++ b/stdlib/tst-environ.c @@ -138,5 +138,21 @@ main (void) result = 1; } + /* Now a test with an environment variable that's one character long. + This is to test a special case in the getenv implementation. */ + strcpy (putenv_val, "X=one character test"); + if (putenv (putenv_val) != 0) + { + printf ("putenv #2 failed: %m\n"); + result = 1; + } + + valp = getenv ("X"); + if (valp == NULL || strcmp (valp, "one character test") != 0) + { + puts ("getenv #11 failed"); + result = 1; + } + return result; } -- cgit v1.2.3