Blame elf/argv0test.c

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