mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-27 07:20:11 +00:00
cheri: use getauxptr in iconv/tst-gconv-init-failure test
On CHERI targets getauxval cannot return a valid pointer.
This commit is contained in:
parent
a05a3def72
commit
e0bde77854
@ -31,13 +31,13 @@
|
||||
static void
|
||||
activate_test_gconv_modules (void)
|
||||
{
|
||||
unsigned long ptr = getauxval (AT_EXECFN);
|
||||
if (ptr == 0)
|
||||
const char *ptr = getauxptr (AT_EXECFN);
|
||||
if (ptr == NULL)
|
||||
{
|
||||
printf ("warning: AT_EXECFN not support, cannot run test\n");
|
||||
exit (EXIT_UNSUPPORTED);
|
||||
}
|
||||
char *test_program_directory = dirname (xstrdup ((const char *) ptr));
|
||||
char *test_program_directory = dirname (xstrdup (ptr));
|
||||
TEST_VERIFY (setenv ("GCONV_PATH", test_program_directory, 1) == 0);
|
||||
free (test_program_directory);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user