mirror of
git://sourceware.org/git/glibc.git
synced 2025-04-06 14:10:30 +08:00
Add more tests.
This commit is contained in:
parent
a4ee429b58
commit
380233a219
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user