diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-07-16 07:30:42 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-07-16 07:30:42 +0000 |
commit | ca41028b16eab254278ae8ed6b0a0998ea21d0c7 (patch) | |
tree | 698c16208a2710404aed18f3f84480fb1a7b8966 /io/tst-getcwd.c | |
parent | e0ea35a3f764a11cf9fc8389f128e5acad09cb17 (diff) | |
download | glibc-ca41028b16eab254278ae8ed6b0a0998ea21d0c7.zip glibc-ca41028b16eab254278ae8ed6b0a0998ea21d0c7.tar.gz glibc-ca41028b16eab254278ae8ed6b0a0998ea21d0c7.tar.bz2 |
Update.
2000-07-16 Ulrich Drepper <drepper@redhat.com>
* Makefile: Rewrite rules for tests to run them only when necessary.
* sort-test.sh: Produce output for failed tests.
* tst-fmon.sh: Likewise.
* tst-rpmatch.sh: Likewise.
Diffstat (limited to 'io/tst-getcwd.c')
-rw-r--r-- | io/tst-getcwd.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/io/tst-getcwd.c b/io/tst-getcwd.c index 3dac2fb..4b5bc62 100644 --- a/io/tst-getcwd.c +++ b/io/tst-getcwd.c @@ -120,12 +120,20 @@ getcwd (NULL, sbs) = \"%s\", getcwd (thepath, sizeof thepath) = \"%s\"\n", free (bufs[2]); } + memset (thepath, '\xfe', sizeof (thepath)); if (getcwd (thepath, len) != NULL) { puts ("getcwd (thepath, len) didn't failed"); return 1; } + for (i = len; i < sizeof thepath; ++i) + if (thepath[i] != '\xfe') + { + puts ("thepath[i] != '\xfe'"); + return 1; + } + /* Now test handling of correctly sized buffers. */ bufs[0] = getcwd (NULL, len + 1); if (bufs[0] == NULL) |