libabigail/tests/data
Dodji Seketeli a16e97596b Categorize CV qualifier changes on fn return types as harmless
This partially fixes PR23700.

A change in the CV qualifiers of a function return value type should
be categorized as harmless.  And this is what this patch does.

	* include/abg-comparison.h (FN_RETURN_TYPE_CV_CHANGE_CATEGORY):
	New enumerator for diff_category.
	(EVERYTHING_CATEGORY): Update.
	* src/abg-comp-filter.cc (type_diff_has_cv_qual_change_only):
	Factorize this function out of ...
	(has_fn_parm_type_cv_qual_change): ... this one.
	(has_fn_return_type_cv_qual_change): Define new static function.
	(categorize_harmless_diff_node): Use the new
	has_fn_return_type_cv_qual_change.
	* src/abg-comparison.cc (get_default_harmless_categories_bitmap):
	Adjust to add the new FN_RETURN_TYPE_CV_CHANGE_CATEGORY category.
	(operator<<(ostream& o, diff_category c)): Support the new
	FN_RETURN_TYPE_CV_CHANGE_CATEGORY.
	* tests/data/Makefile.am: Add the new test material below to
	source distribution.
	* tests/data/test-diff-filter/test46-fn-return-qual-change-report-0.txt:
	New reference output for the new input test.
	* tests/data/test-diff-filter/test46-fn-return-qual-change-v{0,1}.c:
	New source code for the new binary test input.
	* tests/data/test-diff-filter/test46-fn-return-qual-change-v{0,1}.o:
	New binary test input files.
	* tests/test-diff-filter.cc: Add the new test input above to test
	harness.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
2018-10-02 14:02:22 +02:00
..
test-abicompat Represent sizes and offsets in bytes and hexadecimal values 2018-04-30 17:11:40 +02:00
test-abidiff Represent sizes and offsets in bytes and hexadecimal values 2018-04-30 17:11:40 +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 Use the flat representation for anonymous struct/unions 2018-06-04 17:40:39 +02:00
test-core-diff
test-default-supprs Bug 20180 - Support system-wide suppression specifications 2016-05-30 18:39:49 +02:00
test-diff-dwarf Explicitely detect anonymous data member changes 2018-06-06 14:07:10 +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 Categorize CV qualifier changes on fn return types as harmless 2018-10-02 14:02:22 +02:00
test-diff-pkg Filter out changes like type to const type 2018-06-28 13:04:47 +02:00
test-diff-suppr Fix propagation of private type suppression category 2018-10-01 16:14:50 +02: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 Use the flat representation for anonymous struct/unions 2018-06-04 17:40:39 +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 Categorize CV qualifier changes on fn return types as harmless 2018-10-02 14:02:22 +02:00