mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-30 22:43:12 +03:00
resolv: tst-p_secstodate can be a regular test
Now that compat_symbol_reference works for non-internal tests, too. Also do not build and run the tests on architectures which lack the __p_secstodate compatibility symbol. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
This commit is contained in:
@ -94,7 +94,9 @@ endif # $(build-shared)
|
|||||||
tests-internal += tst-inet_pton
|
tests-internal += tst-inet_pton
|
||||||
|
|
||||||
# This test accesses the __p_secstodate compat symbol.
|
# This test accesses the __p_secstodate compat symbol.
|
||||||
tests-internal += tst-p_secstodate
|
ifeq ($(have-GLIBC_2.26)$(build-shared),yesyes)
|
||||||
|
tests += tst-p_secstodate
|
||||||
|
endif
|
||||||
|
|
||||||
# This test sends millions of packets and is rather slow.
|
# This test sends millions of packets and is rather slow.
|
||||||
xtests += tst-resolv-qtypes
|
xtests += tst-resolv-qtypes
|
||||||
|
@ -25,8 +25,6 @@
|
|||||||
|
|
||||||
#include <shlib-compat.h>
|
#include <shlib-compat.h>
|
||||||
|
|
||||||
#if TEST_COMPAT (libresolv, GLIBC_2_0, GLIBC_2_27)
|
|
||||||
|
|
||||||
char *__p_secstodate (unsigned long int);
|
char *__p_secstodate (unsigned long int);
|
||||||
compat_symbol_reference (libresolv, __p_secstodate, __p_secstodate, GLIBC_2_0);
|
compat_symbol_reference (libresolv, __p_secstodate, __p_secstodate, GLIBC_2_0);
|
||||||
|
|
||||||
@ -71,14 +69,4 @@ do_test (void)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
static int
|
|
||||||
do_test (void)
|
|
||||||
{
|
|
||||||
return 77;
|
|
||||||
}
|
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <support/test-driver.c>
|
#include <support/test-driver.c>
|
||||||
|
Reference in New Issue
Block a user