libabigail/tests/data/test-abidiff
Dodji Seketeli 06fa2fd968 comparison: Better sort function difference report
Looking at the result of builds on various platforms, it appears that
the order of the method change reports in the
test29-vtable-changes-report-0.txt of runtestdiffdwarf was not stable
across all platforms. debian-armhf was exhibiting this change in
output, for instance:

    --- /var/lib/buildbot/workers/wildebeest/libabigail-try-debian-armhf/build/tests/data/test-diff-dwarf/test29-vtable-changes-report-0.txt
	2024-03-04 08:56:42.307366590 +0000
    +++ /var/lib/buildbot/workers/wildebeest/libabigail-try-debian-armhf/build/tests/output/test-diff-dwarf/test29-vtable-changes-report-0.txt
	2024-03-04 09:20:22.146334907 +0000
    @@ -19,13 +19,13 @@
		 implicit parameter 0 of type 'S* const' has sub-type
	changes:
		   in unqualified underlying type 'S*':
		     pointed to type 'struct S' changed, as being reported
    +          'method virtual S::~S(int)' has some sub-type changes:
    +            implicit parameter 0 of type 'S*' has sub-type changes:
    +              pointed to type 'struct S' changed, as being reported
	       'method virtual S::~S()' has some sub-type changes:
		 implicit parameter 0 of type 'S* const' has sub-type
	changes:
		   in unqualified underlying type 'S*':
		     pointed to type 'struct S' changed, as being reported
    -          'method virtual S::~S(int)' has some sub-type changes:
    -            implicit parameter 0 of type 'S*' has sub-type changes:
    -              pointed to type 'struct S' changed, as being reported
	       'method virtual void S::fn0()' has some sub-type changes:
		 implicit parameter 0 of type 'S*' has sub-type changes:
		   pointed to type 'struct S' changed, as being reported

Better handling the sorting of function changes should hopefully fix
this issue.

	* src/abg-comparison-priv.h (is_less_than): Declare new helper
	function.
	(function_decl_diff_comp::operator(const function_decl_diff&,
	                                   const function_decl_diff&)):
	Use it here.
	(virtual_member_function_diff_comp::operator(const function_decl_diff&,
	                                             const function_decl_diff&)):
	Likewise.
	* tests/data/test-abidiff/test-PR18791-report0.txt: Adjust.
	* tests/data/test-diff-dwarf/test29-vtable-changes-report-0.txt:
	Adjust.
	* tests/data/test-diff-dwarf/test30-vtable-changes-report-0.txt:
	Adjust.
	* tests/data/test-diff-dwarf/test31-vtable-changes-report-0.txt:
	Adjust.
	* tests/data/test-diff-dwarf/test41-PR20476-hidden-report-0.txt:
	Adjust.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
2024-03-04 13:34:24 +01:00
..
empty-report.txt symtab: Add support for MODVERSIONS (CRC checksums) 2021-04-02 16:13:13 +02:00
test-crc-0.xml symtab: Add support for MODVERSIONS (CRC checksums) 2021-04-02 16:13:13 +02:00
test-crc-1.xml symtab: Add support for MODVERSIONS (CRC checksums) 2021-04-02 16:13:13 +02:00
test-crc-2.xml symtab: Add support for MODVERSIONS (CRC checksums) 2021-04-02 16:13:13 +02:00
test-crc-report-0-1.txt Improve type naming 2023-12-01 15:43:53 +01:00
test-crc-report-1-0.txt Improve type naming 2023-12-01 15:43:53 +01:00
test-crc-report-1-2.txt Improve type naming 2023-12-01 15:43:53 +01:00
test-empty-corpus-0.xml abg-reader: handle empty corpus nodes in xml representation 2020-01-20 12:20:09 +00:00
test-empty-corpus-1.xml abg-reader: handle empty corpus nodes in xml representation 2020-01-20 12:20:09 +00:00
test-empty-corpus-2.xml abg-reader: handle empty corpus nodes in xml representation 2020-01-20 12:20:09 +00:00
test-enum0-report.txt Bug 28319 - re-fix of rhbz1951526 - SELF CHECK FAILED for 'gimp-2.10' 2022-01-14 10:45:29 +01:00
test-enum0-v0.cc.bi Rename bi* tools to abi* tools 2014-09-26 10:58:16 +02:00
test-enum0-v1.cc.bi Rename bi* tools to abi* tools 2014-09-26 10:58:16 +02:00
test-enum1-report.txt abidiff: Fix enum impacted interfaces blank line. 2020-03-30 16:27:13 +02:00
test-enum1-v0.cc.bi Rename bi* tools to abi* tools 2014-09-26 10:58:16 +02:00
test-enum1-v1.cc.bi Rename bi* tools to abi* tools 2014-09-26 10:58:16 +02:00
test-namespace-0.xml add Linux kernel symbol namespace support 2022-07-01 14:51:27 +02:00
test-namespace-1.xml add Linux kernel symbol namespace support 2022-07-01 14:51:27 +02:00
test-namespace-report.txt add Linux kernel symbol namespace support 2022-07-01 14:51:27 +02:00
test-PR18166-libtirpc.so Fix "is-anonymous" abixml property impact on some tests 2015-10-15 13:50:48 +02:00
test-PR18166-libtirpc.so.abi Remove ABI XML test data file blank lines 2020-07-28 16:21:34 +02:00
test-PR18791-report0.txt comparison: Better sort function difference report 2024-03-04 13:34:24 +01:00
test-PR18791-v0.so.abi Bug 20199 - Consider integral type synonyms as being equal 2016-07-13 23:37:43 +02:00
test-PR18791-v1.so.abi Bug 20199 - Consider integral type synonyms as being equal 2016-07-13 23:37:43 +02:00
test-PR24552-v0.abi Bug 24552 - abidiff fails comparing a corpus against a corpus group 2019-05-16 18:10:08 +02:00
test-PR24552-v1.abi Bug 24552 - abidiff fails comparing a corpus against a corpus group 2019-05-16 18:10:08 +02:00
test-PR27616-squished-v0.abi reader: Handle 'abi-corpus' element being possibly empty 2021-05-03 17:13:31 +02:00
test-PR27616-squished-v1.abi reader: Handle 'abi-corpus' element being possibly empty 2021-05-03 17:13:31 +02:00
test-PR27616-v0.xml reader: Handle 'abi-corpus' element being possibly empty 2021-05-03 17:13:31 +02:00
test-PR27616-v1.xml reader: Handle 'abi-corpus' element being possibly empty 2021-05-03 17:13:31 +02:00
test-PR27985-report.txt Bug 27985 - abidiff: bad array types in report 2021-09-03 11:08:01 +02:00
test-PR27985-v0.c Bug 27985 - abidiff: bad array types in report 2021-09-03 11:08:01 +02:00
test-PR27985-v0.o Bug 27985 - abidiff: bad array types in report 2021-09-03 11:08:01 +02:00
test-PR27985-v0.o.abi Bug 27985 - abidiff: bad array types in report 2021-09-03 11:08:01 +02:00
test-PR27985-v1.c Bug 27985 - abidiff: bad array types in report 2021-09-03 11:08:01 +02:00
test-PR27985-v1.o Bug 27985 - abidiff: bad array types in report 2021-09-03 11:08:01 +02:00
test-PR27985-v1.o.abi Bug 27985 - abidiff: bad array types in report 2021-09-03 11:08:01 +02:00
test-qual-type0-report.txt abidiff: do not qualify member names in diff report 2021-02-08 16:29:13 +01:00
test-qual-type0-v0.cc.bi Rename bi* tools to abi* tools 2014-09-26 10:58:16 +02:00
test-qual-type0-v1.cc.bi Rename bi* tools to abi* tools 2014-09-26 10:58:16 +02:00
test-struct0-report.txt abidiff: do not qualify member names in diff report 2021-02-08 16:29:13 +01:00
test-struct0-v0.cc.bi Rename bi* tools to abi* tools 2014-09-26 10:58:16 +02:00
test-struct0-v1.cc.bi Rename bi* tools to abi* tools 2014-09-26 10:58:16 +02:00
test-struct1-report.txt abidiff: do not qualify member names in diff report 2021-02-08 16:29:13 +01:00
test-struct1-v0.cc.bi Rename bi* tools to abi* tools 2014-09-26 10:58:16 +02:00
test-struct1-v1.cc.bi Rename bi* tools to abi* tools 2014-09-26 10:58:16 +02:00
test-var0-report.txt Output 2-space indentation consistently. 2020-03-16 22:39:35 +01:00
test-var0-v0.cc.bi Rename bi* tools to abi* tools 2014-09-26 10:58:16 +02:00
test-var0-v1.cc.bi Rename bi* tools to abi* tools 2014-09-26 10:58:16 +02:00