libabigail/tests/data
Dodji Seketeli f2437aabad Bug 24787 - Filter out enum changes into compatible integer types
Libabigail's filtering engine fails to recognize an enum changing into
a compatible integer (or vice versa) as a harmless change.

This patch fixes that.

	* include/abg-comparison.h (peel_typedef_or_qualified_type_diff):
	Declare new function.
	(peel_pointer_or_qualified_type_diff): Rename
	peel_pointer_or_qualified_type into this.
	* include/abg-fwd.h (is_enum_type): Declare a new overload for
	type_or_decl_base*.
	* src/abg-comp-filter.cc (has_harmless_enum_to_int_change): Define
	new static function.
	* src/abg-comparison.cc (categorize_harmless_diff_node): Use the
	new has_harmless_enum_to_int_change here.
	(peel_pointer_or_qualified_type_diff): Renamed
	peel_pointer_or_qualified_type into this.
	(is_diff_of_basic_type): Adjust.
	(peel_typedef_or_qualified_type_diff): Define new function.
	* test-diff-filter/PR24787-lib{one, two}.so: New test input
	binaries.
	* test-diff-filter/PR24787-{one, two}.c: Source files of the test
	input binaries above.
	* test-diff-filter/PR24787-report-0.txt: Test output reference.
	* tests/data/Makefile.am: Add the new testing material to source
	distribution.
	* tests/test-diff-filter.cc (in_out_specs): Add the new test to
	the test harness.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
2019-07-19 18:22:12 +02:00
..
test-abicompat Represent sizes and offsets in bytes and hexadecimal values 2018-04-30 17:11:40 +02:00
test-abidiff Bug 24552 - abidiff fails comparing a corpus against a corpus group 2019-05-16 18:10:08 +02:00
test-abidiff-exit Update tests for the "better leaf mode redundancy management" patchset 2018-04-13 11:13:09 +02:00
test-alt-dwarf-file
test-annotate [dwarf-reader] Better use of linkage name for fn decl de-duplication 2019-06-13 18:28:12 +02:00
test-core-diff
test-default-supprs
test-diff-dwarf Make abidiff --harmless show harmless changes in unions 2019-06-26 12:08:55 +02:00
test-diff-dwarf-abixml Better handle decl-only classes being different from their definition 2017-07-04 16:47:43 +02:00
test-diff-filter Bug 24787 - Filter out enum changes into compatible integer types 2019-07-19 18:22:12 +02:00
test-diff-pkg Fully account for anonymous-ness of scopes when comparing decl names 2019-06-21 11:42:44 +02:00
test-diff-suppr Bug 24139 - Support suppressing some enumerator changes 2019-01-31 09:20:06 +01:00
test-fedabipkgdiff Add --self-compare option in fedabipkgdiff 2017-05-31 16:21:14 +05:30
test-ini Bug 23533 - Accept '=' in ini property values 2018-08-30 10:54:33 +02:00
test-lookup-syms
test-read-dwarf Implement fast comparison of Linux Kernel types when applicable 2019-07-17 19:35:38 +02:00
test-read-write Initial support for Ada ranges 2018-02-28 16:24:45 +01:00
test-types-stability
test-write-read-archive
Makefile.am Bug 24787 - Filter out enum changes into compatible integer types 2019-07-19 18:22:12 +02:00