public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc/arm/morello/main] cheri: use getauxptr in iconv/tst-gconv-init-failure test
@ 2022-11-23 14:50 Szabolcs Nagy
0 siblings, 0 replies; 4+ messages in thread
From: Szabolcs Nagy @ 2022-11-23 14:50 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=e0bde778546db86042bdf4f4b8eca7f38d01a02e
commit e0bde778546db86042bdf4f4b8eca7f38d01a02e
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
Date: Tue Oct 11 16:24:05 2022 +0100
cheri: use getauxptr in iconv/tst-gconv-init-failure test
On CHERI targets getauxval cannot return a valid pointer.
Diff:
---
iconv/tst-gconv-init-failure.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/iconv/tst-gconv-init-failure.c b/iconv/tst-gconv-init-failure.c
index b29c5db6b8..b86958ab90 100644
--- a/iconv/tst-gconv-init-failure.c
+++ b/iconv/tst-gconv-init-failure.c
@@ -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);
}
^ permalink raw reply [flat|nested] 4+ messages in thread
* [glibc/arm/morello/main] cheri: use getauxptr in iconv/tst-gconv-init-failure test
@ 2022-10-27 14:00 Szabolcs Nagy
0 siblings, 0 replies; 4+ messages in thread
From: Szabolcs Nagy @ 2022-10-27 14:00 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=86affaf7e9121e580abd27e5d423163e75e405c9
commit 86affaf7e9121e580abd27e5d423163e75e405c9
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
Date: Tue Oct 11 16:24:05 2022 +0100
cheri: use getauxptr in iconv/tst-gconv-init-failure test
On CHERI targets getauxval cannot return a valid pointer.
Diff:
---
iconv/tst-gconv-init-failure.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/iconv/tst-gconv-init-failure.c b/iconv/tst-gconv-init-failure.c
index b29c5db6b8..b86958ab90 100644
--- a/iconv/tst-gconv-init-failure.c
+++ b/iconv/tst-gconv-init-failure.c
@@ -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);
}
^ permalink raw reply [flat|nested] 4+ messages in thread
* [glibc/arm/morello/main] cheri: use getauxptr in iconv/tst-gconv-init-failure test
@ 2022-10-26 15:21 Szabolcs Nagy
0 siblings, 0 replies; 4+ messages in thread
From: Szabolcs Nagy @ 2022-10-26 15:21 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=491eaa3cd25836d4ab8f49a048d697d3d5d46685
commit 491eaa3cd25836d4ab8f49a048d697d3d5d46685
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
Date: Tue Oct 11 16:24:05 2022 +0100
cheri: use getauxptr in iconv/tst-gconv-init-failure test
On CHERI targets getauxval cannot return a valid pointer.
Diff:
---
iconv/tst-gconv-init-failure.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/iconv/tst-gconv-init-failure.c b/iconv/tst-gconv-init-failure.c
index b29c5db6b8..b86958ab90 100644
--- a/iconv/tst-gconv-init-failure.c
+++ b/iconv/tst-gconv-init-failure.c
@@ -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);
}
^ permalink raw reply [flat|nested] 4+ messages in thread
* [glibc/arm/morello/main] cheri: use getauxptr in iconv/tst-gconv-init-failure test
@ 2022-10-12 14:15 Szabolcs Nagy
0 siblings, 0 replies; 4+ messages in thread
From: Szabolcs Nagy @ 2022-10-12 14:15 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=cb2ecefc21b525866dc0c22360d958a535992011
commit cb2ecefc21b525866dc0c22360d958a535992011
Author: Szabolcs Nagy <szabolcs.nagy@arm.com>
Date: Tue Oct 11 16:24:05 2022 +0100
cheri: use getauxptr in iconv/tst-gconv-init-failure test
On CHERI targets getauxval cannot return a valid pointer.
Diff:
---
iconv/tst-gconv-init-failure.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/iconv/tst-gconv-init-failure.c b/iconv/tst-gconv-init-failure.c
index b29c5db6b8..b86958ab90 100644
--- a/iconv/tst-gconv-init-failure.c
+++ b/iconv/tst-gconv-init-failure.c
@@ -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);
}
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2022-11-23 14:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-11-23 14:50 [glibc/arm/morello/main] cheri: use getauxptr in iconv/tst-gconv-init-failure test Szabolcs Nagy
-- strict thread matches above, loose matches on Subject: below --
2022-10-27 14:00 Szabolcs Nagy
2022-10-26 15:21 Szabolcs Nagy
2022-10-12 14:15 Szabolcs Nagy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).