|
Packit Service |
e7ae4d |
/* Test for --argv0 option ld.so.
|
|
Packit Service |
e7ae4d |
|
|
Packit Service |
e7ae4d |
Copyright (C) 2020 Free Software Foundation, Inc.
|
|
Packit Service |
e7ae4d |
This file is part of the GNU C Library.
|
|
Packit Service |
e7ae4d |
|
|
Packit Service |
e7ae4d |
The GNU C Library is free software; you can redistribute it and/or
|
|
Packit Service |
e7ae4d |
modify it under the terms of the GNU Lesser General Public
|
|
Packit Service |
e7ae4d |
License as published by the Free Software Foundation; either
|
|
Packit Service |
e7ae4d |
version 2.1 of the License, or (at your option) any later version.
|
|
Packit Service |
e7ae4d |
|
|
Packit Service |
e7ae4d |
The GNU C Library is distributed in the hope that it will be useful,
|
|
Packit Service |
e7ae4d |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
e7ae4d |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
e7ae4d |
Lesser General Public License for more details.
|
|
Packit Service |
e7ae4d |
|
|
Packit Service |
e7ae4d |
You should have received a copy of the GNU Lesser General Public
|
|
Packit Service |
e7ae4d |
License along with the GNU C Library; if not, see
|
|
Packit Service |
e7ae4d |
<https://www.gnu.org/licenses/>. */
|
|
Packit Service |
e7ae4d |
|
|
Packit Service |
e7ae4d |
#include <string.h>
|
|
Packit Service |
e7ae4d |
#include <support/check.h>
|
|
Packit Service |
e7ae4d |
|
|
Packit Service |
e7ae4d |
static int
|
|
Packit Service |
e7ae4d |
do_test (int argc, char **argv)
|
|
Packit Service |
e7ae4d |
{
|
|
Packit Service |
e7ae4d |
TEST_COMPARE_STRING (argv[0], "test-argv0");
|
|
Packit Service |
e7ae4d |
return 0;
|
|
Packit Service |
e7ae4d |
}
|
|
Packit Service |
e7ae4d |
|
|
Packit Service |
e7ae4d |
#define TEST_FUNCTION_ARGV do_test
|
|
Packit Service |
e7ae4d |
#include <support/test-driver.c>
|