ctf-reader: Fix missing initializer for member in test suite

Message ID 20221222154949.221391-1-guillermo.e.martinez@oracle.com
State New
Headers
Series ctf-reader: Fix missing initializer for member in test suite |

Commit Message

Guillermo E. Martinez Dec. 22, 2022, 3:49 p.m. UTC
  Hello,

This patch is basically an amend for commit: 4cf2ef8f9754.

Apologies for it.

Kind regards,
guillermo
--

Compiler detects -Werror=missing-field-initializers in CTF test suite.

	* tests/test-read-ctf.cc (in_out_specs): Add initializer for
	`option' field in test entry.
	* tests/data/test-read-ctf/test-alias.o.abi: Adjust.

Signed-off-by: Guillermo E. Martinez <guillermo.e.martinez@oracle.com>
---
 tests/data/test-read-ctf/test-alias.o.abi | 4 ++--
 tests/test-read-ctf.cc                    | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)
  

Comments

Dodji Seketeli Dec. 23, 2022, 10:50 a.m. UTC | #1
Hello Guillermo,

"Guillermo E. Martinez via Libabigail" <libabigail@sourceware.org> a
écrit:

[...]

> Compiler detects -Werror=missing-field-initializers in CTF test suite.
>
> 	* tests/test-read-ctf.cc (in_out_specs): Add initializer for
> 	`option' field in test entry.
> 	* tests/data/test-read-ctf/test-alias.o.abi: Adjust.
>
> Signed-off-by: Guillermo E. Martinez <guillermo.e.martinez@oracle.com>

Applied to master, thanks!

[...]

Cheers,
  

Patch

diff --git a/tests/data/test-read-ctf/test-alias.o.abi b/tests/data/test-read-ctf/test-alias.o.abi
index b5fd92ad..0122abc6 100644
--- a/tests/data/test-read-ctf/test-alias.o.abi
+++ b/tests/data/test-read-ctf/test-alias.o.abi
@@ -8,8 +8,8 @@ 
     <elf-symbol name='main_var' size='4' type='object-type' binding='global-binding' visibility='default-visibility' alias='alias_var' is-defined='yes'/>
   </elf-variable-symbols>
   <abi-instr address-size='64' language='LANG_C'>
-    <type-decl name='int' size-in-bits='32' alignment-in-bits='32' id='type-id-1'/>
-    <function-decl name='main_func' visibility='default' binding='global' size-in-bits='64' alignment-in-bits='8' elf-symbol-id='main_func'>
+    <type-decl name='int' size-in-bits='32' id='type-id-1'/>
+    <function-decl name='main_func' visibility='default' binding='global' size-in-bits='64' elf-symbol-id='main_func'>
       <return type-id='type-id-2'/>
     </function-decl>
     <var-decl name='alias_var' type-id='type-id-1' mangled-name='alias_var' visibility='default' elf-symbol-id='alias_var'/>
diff --git a/tests/test-read-ctf.cc b/tests/test-read-ctf.cc
index f618e0fd..2dfdbf29 100644
--- a/tests/test-read-ctf.cc
+++ b/tests/test-read-ctf.cc
@@ -342,6 +342,7 @@  static InOutSpec in_out_specs[] =
     SEQUENCE_TYPE_ID_STYLE,
     "data/test-read-ctf/test-alias.o.abi",
     "output/test-read-ctf/test-alias.o.abi",
+    "--ctf"
   },
   // CTF fallback feature.
   {