]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Add more tests.
authorUlrich Drepper <drepper@redhat.com>
Thu, 4 Apr 2002 08:11:09 +0000 (08:11 +0000)
committerUlrich Drepper <drepper@redhat.com>
Thu, 4 Apr 2002 08:11:09 +0000 (08:11 +0000)
misc/tst-dirname.c

index 0808b839dfd991194dd102dfc059ee2ddc184268..a428786db6fd4eaa0e46d521451b7fd8d0e204e0 100644 (file)
@@ -1,5 +1,5 @@
 /* Test program for dirname function a la XPG.
-   Copyright (C) 1996, 2000, 2001 Free Software Foundation, Inc.
+   Copyright (C) 1996, 2000, 2001, 2002 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Ulrich Drepper <drepper@cygnus.com>, 1996.
 
@@ -62,5 +62,9 @@ main (void)
   result |= test ("//usr//", "//");
   result |= test ("//", "//");
 
+  /* Other Unix implementations behave like this.  */
+  result |= test ("x///y", "x");
+  result |= test ("x/////y", "x");
+
   return result != 0;
 }