From 380233a219363ae6f5c6c67db474dba4bb260cbb Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 4 Apr 2002 08:11:09 +0000 Subject: [PATCH] Add more tests. --- misc/tst-dirname.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/misc/tst-dirname.c b/misc/tst-dirname.c index 0808b839dfd..a428786db6f 100644 --- a/misc/tst-dirname.c +++ b/misc/tst-dirname.c @@ -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 , 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; } -- 2.47.2