mirror of
git://sourceware.org/git/libabigail.git
synced 2024-12-15 14:34:38 +00:00
Fix a typo in the recent Rust support and update regression tests
* configure.ac: Fix the typo HAS_LANG_Rust into HAS_DW_LANG_Rust. * tests/data/test-diff-dwarf/test46-readme.txt: Add new file to the test suite. * tests/data/test-diff-dwarf/test46-rust-libone.so: Likewise. * tests/data/test-diff-dwarf/test46-rust-libtwo.so: Likewise. * tests/data/test-diff-dwarf/test46-rust-report-0.txt: Likewise. * tests/test-diff-dwarf.cc (in_out_specs): Update the tests array to compare the two new binaries included above. Signed-off-by: Dodji Seketeli <dodji@redhat.com>
This commit is contained in:
parent
ffec27fb38
commit
6e9b2ae423
@ -724,8 +724,8 @@ fi
|
||||
|
||||
HAS_DW_LANG_Rust=no
|
||||
AC_CHECK_DECL([DW_LANG_Rust],
|
||||
[HAS_LANG_Rust=yes],
|
||||
[HAS_LANG_Rust=no],
|
||||
[HAS_DW_LANG_Rust=yes],
|
||||
[HAS_DW_LANG_Rust=no],
|
||||
[[#include <dwarf.h>]])
|
||||
|
||||
if test x$HAS_DW_LANG_Rust = xyes; then
|
||||
|
3
tests/data/test-diff-dwarf/test46-readme.txt
Normal file
3
tests/data/test-diff-dwarf/test46-readme.txt
Normal file
@ -0,0 +1,3 @@
|
||||
The test46-rust-libone.so and test46-rust-libtwo.so binaries come from
|
||||
the project https://gitlab.gnome.org/federico/abi-rust. The binaries
|
||||
there are libone.so and libtwo.so, renamed accordingly here.
|
BIN
tests/data/test-diff-dwarf/test46-rust-libone.so
Executable file
BIN
tests/data/test-diff-dwarf/test46-rust-libone.so
Executable file
Binary file not shown.
BIN
tests/data/test-diff-dwarf/test46-rust-libtwo.so
Executable file
BIN
tests/data/test-diff-dwarf/test46-rust-libtwo.so
Executable file
Binary file not shown.
18
tests/data/test-diff-dwarf/test46-rust-report-0.txt
Normal file
18
tests/data/test-diff-dwarf/test46-rust-report-0.txt
Normal file
@ -0,0 +1,18 @@
|
||||
Functions changes summary: 0 Removed, 1 Changed, 0 Added function
|
||||
Variables changes summary: 0 Removed, 0 Changed, 0 Added variable
|
||||
|
||||
1 function with some indirect sub-type change:
|
||||
|
||||
[C]'function one::Foo one::foo(u32)' has some indirect sub-type changes:
|
||||
'function one::Foo one::foo(u32) {foo}' now becomes 'function two::Foo two::foo(u32, u32) {foo}'
|
||||
return type changed:
|
||||
type name changed from 'one::Foo' to 'two::Foo'
|
||||
type size changed from 32 to 64 (in bits)
|
||||
1 data member insertion:
|
||||
'u32 two::Foo::b', at offset 32 (in bits)
|
||||
1 data member change:
|
||||
name of 'one::Foo::a' changed to 'two::Foo::a'
|
||||
parameter 2 of type 'u32' was added
|
||||
|
||||
|
||||
|
@ -344,6 +344,12 @@ InOutSpec in_out_specs[] =
|
||||
"data/test-diff-dwarf/test45-anon-dm-change-report-0.txt",
|
||||
"output/test-diff-dwarf/test45-anon-dm-change-report-0.txt"
|
||||
},
|
||||
{
|
||||
"data/test-diff-dwarf/test46-rust-libone.so",
|
||||
"data/test-diff-dwarf/test46-rust-libtwo.so",
|
||||
"data/test-diff-dwarf/test46-rust-report-0.txt",
|
||||
"output/test-diff-dwarf/test46-rust-report-0.txt"
|
||||
},
|
||||
// This should be the last entry
|
||||
{NULL, NULL, NULL, NULL}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user