Forgot to consider libtest33-v{0,1}.so in test-diff-suppr.cc
authorDodji Seketeli <dodji@redhat.com>
Sat, 26 Nov 2016 09:37:19 +0000 (10:37 +0100)
committerDodji Seketeli <dodji@redhat.com>
Sat, 26 Nov 2016 09:37:19 +0000 (10:37 +0100)
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 <dodji@redhat.com>
tests/data/test-diff-suppr/test33-report-0.txt [new file with mode: 0644]
tests/test-diff-suppr.cc

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 (file)
index 0000000..cd152ae
--- /dev/null
@@ -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)
+
+
index 1b6315ef23fd9e190acea5c21d6ea4eabc9293b9..a356eabab94a461b5bc5e4c4981282c22473d714 100644 (file)
@@ -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}
 };