about summary refs log tree commit diff
path: root/io/tst-getcwd.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-07-16 07:30:42 +0000
committerUlrich Drepper <drepper@redhat.com>2000-07-16 07:30:42 +0000
commitca41028b16eab254278ae8ed6b0a0998ea21d0c7 (patch)
tree698c16208a2710404aed18f3f84480fb1a7b8966 /io/tst-getcwd.c
parente0ea35a3f764a11cf9fc8389f128e5acad09cb17 (diff)
downloadglibc-ca41028b16eab254278ae8ed6b0a0998ea21d0c7.tar.gz
glibc-ca41028b16eab254278ae8ed6b0a0998ea21d0c7.tar.xz
glibc-ca41028b16eab254278ae8ed6b0a0998ea21d0c7.zip
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.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/io/tst-getcwd.c b/io/tst-getcwd.c
index 3dac2fbe6b..4b5bc62c7c 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)