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