diff options
author | Ulrich Drepper <drepper@redhat.com> | 2000-10-26 08:11:19 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2000-10-26 08:11:19 +0000 |
commit | 726b7b0f5cce9df5dd406a6a38a3e104fac9a070 (patch) | |
tree | 51be27a039af937051a2ee45d7765c024b6c83c8 /test-skeleton.c | |
parent | 1267f93e167d951907e335bed5cbf1fa56f7357b (diff) | |
download | glibc-726b7b0f5cce9df5dd406a6a38a3e104fac9a070.tar.gz |
Update.
2000-10-26 Ulrich Drepper <drepper@redhat.com>
* posix/Makefile (tests): Add tst-chmod.
(tst-chmod-ARGS): Define.
* posix/tst-chmod.c: New file.
* test-skeleton.c: Before calling user-defined function remove
parameters from argument list.
* posix/tst-exec.c: Adjust to this change.
* posix/tst-spawn.c: Likewise.
* sysdeps/unix/opendir.c (__opendir): Optimize a bit. Add
__builtin_expect.
Diffstat (limited to 'test-skeleton.c')
-rw-r--r-- | test-skeleton.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test-skeleton.c b/test-skeleton.c index db04b11e63..e4cd95702d 100644 --- a/test-skeleton.c +++ b/test-skeleton.c @@ -166,6 +166,10 @@ main (int argc, char *argv[]) /* make sure temporary files are deleted. */ atexit (delete_temp_files); + /* Correct for the possible parameters. */ + argv += optind - 1; + argc -= optind - 1; + /* Call the initializing function, if one is available. */ #ifdef PREPARE PREPARE (argc, argv); |