From: Guillermo E. Martinez Date: Wed, 21 Dec 2022 20:12:33 +0000 (-0600) Subject: ctf-front-end: Add test for alias symbols X-Git-Tag: upstream/2.3~91 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4cf2ef8f975426984403a692a579d69904360e4b;p=platform%2Fupstream%2Flibabigail.git ctf-front-end: Add test for alias symbols This patch adds a new test case in the ctf-front-end test suite to to test for alias symbols support. * tests/data/test-read-ctf/test-alias.o: New binary test input file. * tests/data/test-read-ctf/test-alias.o.abi: New exported abixml file. * tests/data/Makefile.am: Add the new test input above * tests/test-read-ctf.cc: Add the new test input above to the test harness. Signed-off-by: Guillermo E. Martinez Signed-off-by: Dodji Seketeli --- diff --git a/tests/data/Makefile.am b/tests/data/Makefile.am index e994aff3..0f1f4e26 100644 --- a/tests/data/Makefile.am +++ b/tests/data/Makefile.am @@ -643,6 +643,7 @@ test-read-ctf/test9.c \ test-read-ctf/test9.o \ test-read-ctf/test9.o.abi \ test-read-ctf/test-alias.c \ +test-read-ctf/test-alias.o \ test-read-ctf/test-alias.o.abi \ test-read-ctf/test-ambiguous-struct-A.c \ test-read-ctf/test-ambiguous-struct-A.o \ diff --git a/tests/data/test-read-ctf/test-alias.o b/tests/data/test-read-ctf/test-alias.o new file mode 100644 index 00000000..18549b79 Binary files /dev/null and b/tests/data/test-read-ctf/test-alias.o differ diff --git a/tests/data/test-read-ctf/test-alias.o.abi b/tests/data/test-read-ctf/test-alias.o.abi index 1fe61b8f..b5fd92ad 100644 --- a/tests/data/test-read-ctf/test-alias.o.abi +++ b/tests/data/test-read-ctf/test-alias.o.abi @@ -1,19 +1,19 @@ - + - + - - - + + + - - - + + + diff --git a/tests/test-read-ctf.cc b/tests/test-read-ctf.cc index 236ccbf2..f618e0fd 100644 --- a/tests/test-read-ctf.cc +++ b/tests/test-read-ctf.cc @@ -335,6 +335,14 @@ static InOutSpec in_out_specs[] = "output/test-read-ctf/test-linux-module.abi", "--ctf" }, + { + "data/test-read-ctf/test-alias.o", + "", + "", + SEQUENCE_TYPE_ID_STYLE, + "data/test-read-ctf/test-alias.o.abi", + "output/test-read-ctf/test-alias.o.abi", + }, // CTF fallback feature. { "data/test-read-ctf/test-fallback.o",