From eac363eb66cf505806ce8ff2a8b5f90b9dd94e8f Mon Sep 17 00:00:00 2001 From: Dodji Seketeli Date: Sat, 26 Nov 2016 10:37:19 +0100 Subject: [PATCH] Forgot to consider libtest33-v{0,1}.so in test-diff-suppr.cc I forgot the make test-diff-suppr.cc run over libtest33-v{0,1}.so even though this test was added to the source distribution. Fixed thus. * tests/data/test-diff-suppr/test33-report-0.txt: New refernce report. * tests/test-diff-suppr.cc (in_out_specs): Compare libtest33-v0.so and libtest33-v1.so. Signed-off-by: Dodji Seketeli --- tests/data/test-diff-suppr/test33-report-0.txt | 13 +++++++++++++ tests/test-diff-suppr.cc | 10 ++++++++++ 2 files changed, 23 insertions(+) create mode 100644 tests/data/test-diff-suppr/test33-report-0.txt diff --git a/tests/data/test-diff-suppr/test33-report-0.txt b/tests/data/test-diff-suppr/test33-report-0.txt new file mode 100644 index 00000000..cd152ae8 --- /dev/null +++ b/tests/data/test-diff-suppr/test33-report-0.txt @@ -0,0 +1,13 @@ +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 void bar(to_keep&)' has some indirect sub-type changes: + parameter 1 of type 'to_keep&' has sub-type changes: + in referenced type 'class to_keep': + type size changed from 8 to 32 bits + 1 data member insertion: + 'int to_keep::member1', at offset 0 (in bits) + + diff --git a/tests/test-diff-suppr.cc b/tests/test-diff-suppr.cc index 1b6315ef..a356eaba 100644 --- a/tests/test-diff-suppr.cc +++ b/tests/test-diff-suppr.cc @@ -1658,6 +1658,16 @@ InOutSpec in_out_specs[] = "data/test-diff-suppr/test32-report-1.txt", "output/test-diff-suppr/test32-report-1.txt" }, + { + "data/test-diff-suppr/libtest33-v0.so", + "data/test-diff-suppr/libtest33-v1.so", + "", + "", + "data/test-diff-suppr/libtest33-1.suppr", + "--no-default-suppression --no-show-locs --no-redundant", + "data/test-diff-suppr/test33-report-0.txt", + "output/test-diff-suppr/test33-report-0.txt" + }, // This should be the last entry {NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL} }; -- 2.34.1