From a164de85780370f9ae5c53f1a1aa7cde1fcf303e Mon Sep 17 00:00:00 2001 From: lijincheng Date: Thu, 3 Apr 2025 19:38:18 +0800 Subject: [PATCH] Update ignore list 1.Update ignore list 2.Fix wrong CTS case Issue:https://gitee.com/openharmony/arkcompiler_ets_frontend/issues/IBYNJV Signed-off-by: lijincheng --- .../comp_obj/comp-obj-lit.ets | 2 +- .../06.char_to_string_conversions/comp-clss.ets | 2 +- .../17.typeof_expression/tof_obj.params.yaml | 14 +++++++------- .../interface_with_optional_attributes_0005.ets | 2 +- .../tests/test_esobject/esobject_def_test.ets | 2 +- .../tests/test-lists/ets-cts/ets-cts-ignored.txt | 4 ---- 6 files changed, 11 insertions(+), 15 deletions(-) diff --git a/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/04.widening_union_conversions/comp_obj/comp-obj-lit.ets b/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/04.widening_union_conversions/comp_obj/comp-obj-lit.ets index ca264bc6a9..16bf8153f2 100644 --- a/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/04.widening_union_conversions/comp_obj/comp-obj-lit.ets +++ b/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/04.widening_union_conversions/comp_obj/comp-obj-lit.ets @@ -27,7 +27,7 @@ let s{{loop.index}}: {{t.from_type}} = {{t.expr|safe}}; {%- endfor %} class A { - fld: {{c.to_type}} + fld: {{c.to_type}} = "" } function main() { diff --git a/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/06.char_to_string_conversions/comp-clss.ets b/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/06.char_to_string_conversions/comp-clss.ets index 88630d6ec2..60837504fa 100644 --- a/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/06.char_to_string_conversions/comp-clss.ets +++ b/static_core/plugins/ets/tests/ets-templates/06.contexts_and_conversions/05.implicit_conversions/06.char_to_string_conversions/comp-clss.ets @@ -24,7 +24,7 @@ let c{{loop.index}}: char = {{v.char}} {%- endfor %} class A { - fld: string + fld: string = "" } function main() { diff --git a/static_core/plugins/ets/tests/ets-templates/07.expressions/17.typeof_expression/tof_obj.params.yaml b/static_core/plugins/ets/tests/ets-templates/07.expressions/17.typeof_expression/tof_obj.params.yaml index c6998c9605..5aaffe7246 100644 --- a/static_core/plugins/ets/tests/ets-templates/07.expressions/17.typeof_expression/tof_obj.params.yaml +++ b/static_core/plugins/ets/tests/ets-templates/07.expressions/17.typeof_expression/tof_obj.params.yaml @@ -222,10 +222,10 @@ cases: - res: 'number' vals: - - { type: 'Comparable', expr: 'new Float()' } - - { type: 'Comparable', expr: 'new Double()' } - - { type: 'Comparable', expr: 'new Byte()' } - - { type: 'Comparable', expr: 'new Short()' } - - { type: 'Comparable', expr: 'new Int()' } - - { type: 'Comparable', expr: 'new Long()' } - - { type: 'Comparable', expr: 'new Char()' } + - { type: 'Comparable', init_value: 'new Float()', expr: 'new Float()' } + - { type: 'Comparable', init_value: 'new Double()', expr: 'new Double()' } + - { type: 'Comparable', init_value: 'new Byte()', expr: 'new Byte()' } + - { type: 'Comparable', init_value: 'new Short()', expr: 'new Short()' } + - { type: 'Comparable', init_value: 'new Int()', expr: 'new Int()' } + - { type: 'Comparable', init_value: 'new Long()', expr: 'new Long()' } + - { type: 'Comparable', init_value: 'new Char()', expr: 'new Char()' } diff --git a/static_core/plugins/ets/tests/ets_func_tests/spec/10.Interfaces/10.4.Interface_Members/interface_with_optional_attributes_0005.ets b/static_core/plugins/ets/tests/ets_func_tests/spec/10.Interfaces/10.4.Interface_Members/interface_with_optional_attributes_0005.ets index c839648559..5decbbda31 100644 --- a/static_core/plugins/ets/tests/ets_func_tests/spec/10.Interfaces/10.4.Interface_Members/interface_with_optional_attributes_0005.ets +++ b/static_core/plugins/ets/tests/ets_func_tests/spec/10.Interfaces/10.4.Interface_Members/interface_with_optional_attributes_0005.ets @@ -27,7 +27,7 @@ interface IStudent { } class Teacher { - name: string; + name: string = ""; } class Student implements IStudent { diff --git a/static_core/plugins/ets/tests/interop_js/tests/test_esobject/esobject_def_test.ets b/static_core/plugins/ets/tests/interop_js/tests/test_esobject/esobject_def_test.ets index 077ebebc5a..e65a279675 100644 --- a/static_core/plugins/ets/tests/interop_js/tests/test_esobject/esobject_def_test.ets +++ b/static_core/plugins/ets/tests/interop_js/tests/test_esobject/esobject_def_test.ets @@ -202,7 +202,7 @@ function checkGetPropertyByName(): boolean { // getProperty(name: string): ESObject function checkGetPropertyStaticObj(): boolean { class staticObjectA { - aaa: string + aaa: string = "" } let sObj = new staticObjectA(); sObj.aaa = "bbb"; diff --git a/static_core/plugins/ets/tests/test-lists/ets-cts/ets-cts-ignored.txt b/static_core/plugins/ets/tests/test-lists/ets-cts/ets-cts-ignored.txt index 3a3232f7d9..917d6fccdc 100644 --- a/static_core/plugins/ets/tests/test-lists/ets-cts/ets-cts-ignored.txt +++ b/static_core/plugins/ets/tests/test-lists/ets-cts/ets-cts-ignored.txt @@ -682,10 +682,6 @@ #24507 09.classes/06.method_declarations/09.methods_returning_this/met_ret_this_24.ets -#24022 missing CTE for uninitialized static field -09.classes/08.class_initializer/class_initializer_ensure_fields_initialized.ets -09.classes/08.class_initializer/class_initializer_ensure_fields_initialized_1.ets - #23832 missing CTE for static constructor 09.classes/09.constructor_declaration/static_constructor_declaration.ets -- Gitee