libabigail/tests
Dodji Seketeli 4ce7f69dac Identify a function using its symbol name and version
When a function symbol S has several versions and several different
functions with different names have those different versions of S as
underlying symbols, libabigail could mistakenly take one function for
another.  This is because there are cases where libabigail identifies
the function using its symbol name without taking the version name
into account.

This patch fixes that.

	* src/abg-default-reporter.cc (default_reporter::report): In C,
	tell the user about the underlying function symbol name only if
	said symbol name is different from the name of the function.
	* src/abg-ir.cc (function_decl::get_id): If the function has an
	underlying symbol, use the symbol name and version as the function
	ID.  But if the function symbol has an alias then use the linkage
	name as the ID.
	* tests/data/test-diff-pkg/elfutils-debuginfo-0.170-4.el7.x86_64.rpm:
	New binary test input.
	* tests/data/test-diff-pkg/elfutils-debuginfo-0.171-1.el7.x86_64.rpm: Likewise.
	* tests/data/test-diff-pkg/elfutils-devel-0.170-4.el7.x86_64.rpm: Likewise.
	* tests/data/test-diff-pkg/elfutils-devel-0.171-1.el7.x86_64.rpm: Likewise.
	* tests/data/test-diff-pkg/elfutils-libs-0.170-4.el7.x86_64.rpm: Likewise.
	* tests/data/test-diff-pkg/elfutils-libs-0.171-1.el7.x86_64.rpm: Likewise.
	* tests/data/test-diff-pkg/elfutils-libs-0.170-4.el7.x86_64-multiple-sym-vers-report-0.txt:
	New reference test output.
	* tests/data/Makefile.am: Add the new test material above to
	source distribution.
	* tests/test-diff-pkg.cc (in_out_specs): Integrate the new test
	inputs above into the harness.

Signed-off-by: Dodji Seketeli <dodji@redhat.com>
2018-06-08 05:12:24 +02:00
..
data Identify a function using its symbol name and version 2018-06-08 05:12:24 +02:00
Makefile.am Do not enable fedabipkgdiff tests if fedabipkgdiff itself is disabled 2018-03-30 10:38:23 +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 Update copyright notice for all source files 2018-01-08 18:24:26 +01:00
test-dot.cc
test-ir-walker.cc Update copyright notice for all source files 2018-01-08 18:24:26 +01: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