diff options
author | Ulrich Drepper <drepper@redhat.com> | 1999-09-20 02:18:14 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1999-09-20 02:18:14 +0000 |
commit | b5c69d99130e6f70505c353a5eddd3405dda3108 (patch) | |
tree | 9330ce246f1bc7dd9491c80b3e8503a0caa97bc4 /stdlib | |
parent | 4d512b65536b02d2f2961dd2e3c47678cfc3e5eb (diff) | |
download | glibc-b5c69d99130e6f70505c353a5eddd3405dda3108.tar.gz glibc-b5c69d99130e6f70505c353a5eddd3405dda3108.tar.xz glibc-b5c69d99130e6f70505c353a5eddd3405dda3108.zip |
Update.
1999-09-19 Ulrich Drepper <drepper@cygnus.com> * po/pl.po: Updated. 1999-09-17 Andreas Schwab <schwab@suse.de> * Makefile (clean): Also remove $(postclean) files. 1999-09-15 Andreas Jaeger <aj@suse.de> * pwd/Makefile (otherlibs): Add for building with static-nss. * inet/Makefile (otherlibs): Likewise. 1999-09-15 Andreas Jaeger <aj@suse.de> * sysdeps/generic/aio_sigqueue.c (__aio_sigqueue): Use old style function definition to avoid a compilation failure. 1999-09-15 Andreas Jaeger <aj@suse.de> * stdlib/tst-environ.c (main): Add getenv regression test for environment variable that's one character long. 1999-09-15 Andreas Jaeger <aj@suse.de> * 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).
Diffstat (limited to 'stdlib')
-rw-r--r-- | stdlib/tst-environ.c | 16 |
1 files changed, 16 insertions, 0 deletions
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; } |