Blame elf/tst-filterobj.c
|
Packit Service |
bf15f1 |
/* Test that symbols from filter objects are resolved to the filtee.
|
|
Packit Service |
bf15f1 |
|
|
Packit Service |
bf15f1 |
Copyright (C) 2020 Free Software Foundation, Inc.
|
|
Packit Service |
bf15f1 |
This file is part of the GNU C Library.
|
|
Packit Service |
bf15f1 |
|
|
Packit Service |
bf15f1 |
The GNU C Library is free software; you can redistribute it and/or
|
|
Packit Service |
bf15f1 |
modify it under the terms of the GNU Lesser General Public
|
|
Packit Service |
bf15f1 |
License as published by the Free Software Foundation; either
|
|
Packit Service |
bf15f1 |
version 2.1 of the License, or (at your option) any later version.
|
|
Packit Service |
bf15f1 |
|
|
Packit Service |
bf15f1 |
The GNU C Library is distributed in the hope that it will be useful,
|
|
Packit Service |
bf15f1 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit Service |
bf15f1 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit Service |
bf15f1 |
Lesser General Public License for more details.
|
|
Packit Service |
bf15f1 |
|
|
Packit Service |
bf15f1 |
You should have received a copy of the GNU Lesser General Public
|
|
Packit Service |
bf15f1 |
License along with the GNU C Library; if not, see
|
|
Packit Service |
bf15f1 |
<https://www.gnu.org/licenses/>. */
|
|
Packit Service |
bf15f1 |
|
|
Packit Service |
bf15f1 |
#include <stdio.h>
|
|
Packit Service |
bf15f1 |
#include <support/check.h>
|
|
Packit Service |
bf15f1 |
#include "tst-filterobj-filtee.h"
|
|
Packit Service |
bf15f1 |
|
|
Packit Service |
bf15f1 |
static int do_test (void)
|
|
Packit Service |
bf15f1 |
{
|
|
Packit Service |
bf15f1 |
const char* text = get_text ();
|
|
Packit Service |
bf15f1 |
|
|
Packit Service |
bf15f1 |
printf ("%s\n", text);
|
|
Packit Service |
bf15f1 |
|
|
Packit Service |
bf15f1 |
/* Verify the text matches what we expect from the filtee */
|
|
Packit Service |
bf15f1 |
TEST_COMPARE_STRING (text, "Hello from filtee (PASS)");
|
|
Packit Service |
bf15f1 |
|
|
Packit Service |
bf15f1 |
return 0;
|
|
Packit Service |
bf15f1 |
}
|
|
Packit Service |
bf15f1 |
|
|
Packit Service |
bf15f1 |
#include <support/test-driver.c>
|