From ca41028b16eab254278ae8ed6b0a0998ea21d0c7 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Sun, 16 Jul 2000 07:30:42 +0000 Subject: Update. 2000-07-16 Ulrich Drepper * 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. --- io/tst-getcwd.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'io') 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) -- cgit v1.1