libabigail/tests
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
..
data Categorize CV qualifier changes on fn return types as harmless 2018-10-02 14:02:22 +02:00
Makefile.am Bug 23533 - Accept '=' in ini property values 2018-08-30 10:54:33 +02:00
mockfedabipkgdiff.in Bug 22722 - Make fedabipkgdiff and its tests support both python 3 and 2 2018-03-29 13:46:50 +02:00
print-diff-tree.cc Update copyright notice for all source files 2018-01-08 18:24:26 +01:00
runtestcanonicalizetypes.sh.in Bug 20180 - Support system-wide suppression specifications 2016-05-30 18:39:49 +02:00
runtestdefaultsupprs.py.in Fix typo in tests/runtestdefaultsupprs.py 2018-05-24 10:48:56 +02:00
runtestdefaultsupprspy3.sh.in Bug 22722 - Make fedabipkgdiff and its tests support both python 3 and 2 2018-03-29 13:46:50 +02:00
runtestfedabipkgdiff.py.in Bug 22722 - Make fedabipkgdiff and its tests support both python 3 and 2 2018-03-29 13:46:50 +02:00
runtestfedabipkgdiffpy3.sh.in Bug 22722 - Make fedabipkgdiff and its tests support both python 3 and 2 2018-03-29 13:46:50 +02:00
test-abicompat.cc Update copyright notice for all source files 2018-01-08 18:24:26 +01:00
test-abidiff-exit.cc Update copyright notice for all source files 2018-01-08 18:24:26 +01:00
test-abidiff.cc Update copyright notice for all source files 2018-01-08 18:24:26 +01:00
test-alt-dwarf-file.cc Update copyright notice for all source files 2018-01-08 18:24:26 +01:00
test-annotate.cc Wire the --no-show-locs option to abidw 2017-11-02 12:57:11 +01:00
test-core-diff.cc Update copyright notice for all source files 2018-01-08 18:24:26 +01:00
test-diff2.cc Update copyright notice for all source files 2018-01-08 18:24:26 +01:00
test-diff-dwarf-abixml.cc Update copyright notice for all source files 2018-01-08 18:24:26 +01:00
test-diff-dwarf.cc Explicitely detect anonymous data member changes 2018-06-06 14:07:10 +02:00
test-diff-filter.cc Better detect when diff nodes only carry local type changes 2018-05-24 16:04:44 +02:00
test-diff-pkg.cc Identify a function using its symbol name and version 2018-06-08 05:12:24 +02:00
test-diff-suppr.cc Fix propagation of private type suppression category 2018-10-01 16:14:50 +02:00
test-dot.cc
test-ini.cc Bug 23533 - Accept '=' in ini property values 2018-08-30 10:54:33 +02:00
test-ir-walker.cc Add option to avoid walking abigail::ir nodes twice 2018-09-03 13:32:06 +02:00
test-lookup-syms.cc Update copyright notice for all source files 2018-01-08 18:24:26 +01:00
test-read-dwarf.cc Update copyright notice for all source files 2018-01-08 18:24:26 +01:00
test-read-write.cc Update copyright notice for all source files 2018-01-08 18:24:26 +01:00
test-svg.cc
test-types-stability.cc Update copyright notice for all source files 2018-01-08 18:24:26 +01:00
test-utils.cc Update copyright notice for all source files 2018-01-08 18:24:26 +01:00
test-utils.h Update copyright notice for all source files 2018-01-08 18:24:26 +01:00
test-valgrind-suppressions.supp Shut down a helgrind false positive in the "system" libc call 2017-03-17 09:02:19 +01:00
test-write-read-archive.cc Update copyright notice for all source files 2018-01-08 18:24:26 +01:00
update-test-output.py Rename tests/update-test-read-dwarf-output.py 2016-12-02 12:59:32 +01:00