Fix "is-anonymous" abixml property impact on some tests
authorDodji Seketeli <dodji@redhat.com>
Wed, 14 Oct 2015 12:52:08 +0000 (14:52 +0200)
committerDodji Seketeli <dodji@redhat.com>
Thu, 15 Oct 2015 11:50:48 +0000 (13:50 +0200)
commitd7c2caf23acfac760315d6b43c7459b264166397
tree2b4728d70299381da0ae81bf135657ed546c18d4
parentf95af3a89a87eec0d02ffe1dd4588fd2d3544077
Fix "is-anonymous" abixml property impact on some tests

Since we started to rely on ODR for type canonicalization, we needed
to mark anonymous structures (and enums) as being anonymous, hence, a
new "is-anonymous" property was introduced in the abixml format.
While looking at something else, I noticed that some anonymous
structures in test files
tests/data/test-abidiff/test-corpus0-v{0,1}.so.abi were not marked as
anonymous, and that was causing some comparison issues.  This patch
adjusts those abixml files.  I forgot at the time to mention that
those files were coming from the libtirpc.so binary provided in bug
18166, so I am renaming the files now to reflect that.  Also, I am
adding the binary here.  I have thus re-generated a new abixml file
from that *.so file; it now has the proper "is-anonymous" properties.

* tests/data/test-abidiff/test-PR18166-libtirpc.so: New file.
* tests/data/test-abidiff/test-PR18166-libtirpc.so.abi: Likewise.
* tests/data/test-abidiff/test-corpus0-report0.txt: Renamed into
tests/data/test-abidiff/test-PR18166-libtirpc.so.report.txt.
* tests/data/test-abidiff/test-corpus0-v{0,1}.so.abi: Removed.
* tests/data/Makefile.am: Renamed test-corpus0-* files into
test-PR18166-libtirpc.so-* files.
* tests/test-abidiff.cc (specs): Adjust.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
tests/data/Makefile.am
tests/data/test-abidiff/test-PR18166-libtirpc.so [new file with mode: 0644]
tests/data/test-abidiff/test-PR18166-libtirpc.so.abi [new file with mode: 0644]
tests/data/test-abidiff/test-PR18166-libtirpc.so.report.txt [moved from tests/data/test-abidiff/test-corpus0-report0.txt with 100% similarity]
tests/data/test-abidiff/test-corpus0-v0.so.abi [deleted file]
tests/data/test-abidiff/test-corpus0-v1.so.abi [deleted file]
tests/test-abidiff.cc