public inbox for libabigail@sourceware.org
 help / color / mirror / Atom feed
From: Dodji Seketeli <dodji@seketeli.org>
To: Giuliano Procida <gprocida@google.com>
Cc: libabigail@sourceware.org,  kernel-team@android.com,
	 maennich@google.com
Subject: Re: [RFC PATCH] Add qualifier / typedef / array / pointer test
Date: Thu, 10 Dec 2020 10:10:11 +0100	[thread overview]
Message-ID: <864kkuni18.fsf@seketeli.org> (raw)
In-Reply-To: <20201204165524.319806-1-gprocida@google.com> (Giuliano Procida's message of "Fri, 4 Dec 2020 16:55:24 +0000")

Hello Giuliano,

Giuliano Procida <gprocida@google.com> a écrit:

> This change adds a test which exercises libabigail's handling of
> qualified typedefs of arrays. The base type in the test case is an
> array of pointers (chosen so we can also use restrict).
>
> Various typedefs and (indirect) qualifications of this type are
> created. In all cases, the resulting type should be an array of
> qualified pointers.
>
> However, abidiff reports things like
>
>   'const volatile void* const'
>
> changed to
>
>   'restrict const volatile volatile void* const'
>
> I've not attempted to check whether DWARF and ABI XML faithfully
> reflect the source types. There may be trouble there as well.

Yeah, or there might be a bug somewhere.  In any case, it'd be good to
look into this.  I didn't have time until now, but I feel adding these
tests is improvement already.  We can dig into this issue later.  Maybe
we should file a bug for it?

[...]

> diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am
> index 84447185..516a7f4d 100644
> --- a/tests/data/Makefile.am
> +++ b/tests/data/Makefile.am
> @@ -184,6 +184,14 @@ test-abidiff-exit/test-headers-dirs/test-headers-dir-v0.c \
>  test-abidiff-exit/test-headers-dirs/test-headers-dir-v0.o \
>  test-abidiff-exit/test-headers-dirs/test-headers-dir-v1.c \
>  test-abidiff-exit/test-headers-dirs/test-headers-dir-v1.o \
> +test-abidiff-exit/qualifier-typedef-array-v0.c \
> +test-abidiff-exit/qualifier-typedef-array-v0.o \
> +test-abidiff-exit/qualifier-typedef-array-v1.c \
> +test-abidiff-exit/qualifier-typedef-array-v1.o \
> +test-abidiff-exit/qualifier-typedef-array-report0.txt \
> +test-abidiff-exit/qualifier-typedef-array-report1.txt \
> +test-abidiff-exit/qualifier-typedef-array-report2.txt \
> +test-abidiff-exit/qualifier-typedef-array-report3.txt \

There actual name of the reference report files that are added by the
patch is qualifier-typedef-array-report-{0-3}.txt.  Note the '-'
character before the {0-3}.  I fixed that when applying the patch.

[...]

> 	* tests/data/Makefile.am: Add new test files
> 	* tests/data/test-abidiff-exit/qualifier-typedef-array-v0.c:
> 	New test file.
> 	* tests/data/test-abidiff-exit/qualifier-typedef-array-v0.o:
> 	New test file.
> 	* tests/data/test-abidiff-exit/qualifier-typedef-array-v1.c:
> 	New test file.
> 	* tests/data/test-abidiff-exit/qualifier-typedef-array-v1.o:
> 	New test file.
> 	* tests/data/test-abidiff-exit/qualifier-typedef-array-report-0.txt:
> 	Plain diff report.
> 	* tests/data/test-abidiff-exit/qualifier-typedef-array-report-1.txt:
> 	Harmless diff report.
> 	* tests/data/test-abidiff-exit/qualifier-typedef-array-report-2.txt:
> 	Leaf changes report.
> 	* tests/data/test-abidiff-exit/qualifier-typedef-array-report-3.txt:
> 	Harmless leaf changes report.
> 	* tests/test-abidiff-exit.cc: Run new test.
>
> Signed-off-by: Giuliano Procida <gprocida@google.com>

Applied to master.

Thanks!

[...]

Cheers,

-- 
		Dodji

      reply	other threads:[~2020-12-10  9:10 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-12-04 16:55 Giuliano Procida
2020-12-10  9:10 ` Dodji Seketeli [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=864kkuni18.fsf@seketeli.org \
    --to=dodji@seketeli.org \
    --cc=gprocida@google.com \
    --cc=kernel-team@android.com \
    --cc=libabigail@sourceware.org \
    --cc=maennich@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).