* 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>
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
--- /dev/null
+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.
--- /dev/null
+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
+
+
+
"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}
};