From 97052b1fbc63c3c4a2dc7703e5dc82f7dc924657 Mon Sep 17 00:00:00 2001 From: Elizaveta Kozhevnikova Date: Wed, 23 Jul 2025 13:29:03 +0300 Subject: [PATCH] URunner2: compare test output with .expected file Issue: https://gitee.com/openharmony/arkcompiler_runtime_core/issues/ICD967 Testing: All required pre-merge tests passed. Results are available in the ggwatcher. Signed-off-by: Elizaveta Kozhevnikova --- ...alization_with_unionType.ets.ets.expected.err | 15 +++++++++++++++ .../ets/finallyExecutedAbruptly.ets.expected | 1 + .../ets/finallyExecutedAbruptly.ets.expected.err | 15 +++++++++++++++ .../runtime/ets/generic_union.ets.expected.err | 16 ++++++++++++++++ .../ets/re_export/import.ets.expected.err | 16 ++++++++++++++++ .../ets/register_overflow.ets.expected.err | 15 +++++++++++++++ .../test/runtime/ets/union_call.ets.expected.err | 15 +++++++++++++++ 7 files changed, 93 insertions(+) create mode 100644 ets2panda/test/runtime/ets/fields_with_late_initialization/class_late_initialization_with_unionType.ets.ets.expected.err create mode 100644 ets2panda/test/runtime/ets/finallyExecutedAbruptly.ets.expected create mode 100644 ets2panda/test/runtime/ets/finallyExecutedAbruptly.ets.expected.err create mode 100644 ets2panda/test/runtime/ets/generic_union.ets.expected.err create mode 100644 ets2panda/test/runtime/ets/re_export/import.ets.expected.err create mode 100644 ets2panda/test/runtime/ets/register_overflow.ets.expected.err create mode 100644 ets2panda/test/runtime/ets/union_call.ets.expected.err diff --git a/ets2panda/test/runtime/ets/fields_with_late_initialization/class_late_initialization_with_unionType.ets.ets.expected.err b/ets2panda/test/runtime/ets/fields_with_late_initialization/class_late_initialization_with_unionType.ets.ets.expected.err new file mode 100644 index 0000000000..00ce7fd54b --- /dev/null +++ b/ets2panda/test/runtime/ets/fields_with_late_initialization/class_late_initialization_with_unionType.ets.ets.expected.err @@ -0,0 +1,15 @@ +# +# Copyright (c) 2025 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +E/bytecode_optimizer: Optimizing class_late_initialization_with_unionType.ets.ETSGLOBAL.main:void;: IR builder failed! \ No newline at end of file diff --git a/ets2panda/test/runtime/ets/finallyExecutedAbruptly.ets.expected b/ets2panda/test/runtime/ets/finallyExecutedAbruptly.ets.expected new file mode 100644 index 0000000000..ec9f926b23 --- /dev/null +++ b/ets2panda/test/runtime/ets/finallyExecutedAbruptly.ets.expected @@ -0,0 +1 @@ +Warning: The catch statement with type annotation is deprecated, use catch(e). [finallyExecutedAbruptly.ets:23:17] \ No newline at end of file diff --git a/ets2panda/test/runtime/ets/finallyExecutedAbruptly.ets.expected.err b/ets2panda/test/runtime/ets/finallyExecutedAbruptly.ets.expected.err new file mode 100644 index 0000000000..38bd145a61 --- /dev/null +++ b/ets2panda/test/runtime/ets/finallyExecutedAbruptly.ets.expected.err @@ -0,0 +1,15 @@ +# +# Copyright (c) 2025 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +E/bytecode_optimizer: Optimizing finallyExecutedAbruptly.ETSGLOBAL.main:void;: Graph has irreducible loop! \ No newline at end of file diff --git a/ets2panda/test/runtime/ets/generic_union.ets.expected.err b/ets2panda/test/runtime/ets/generic_union.ets.expected.err new file mode 100644 index 0000000000..a7c594de7e --- /dev/null +++ b/ets2panda/test/runtime/ets/generic_union.ets.expected.err @@ -0,0 +1,16 @@ +# +# Copyright (c) 2025 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +# +E/bytecode_optimizer: Optimizing generic_union.ETSGLOBAL.foo:{Ugeneric_union.A,generic_union.B};i32;: IR builder failed! \ No newline at end of file diff --git a/ets2panda/test/runtime/ets/re_export/import.ets.expected.err b/ets2panda/test/runtime/ets/re_export/import.ets.expected.err new file mode 100644 index 0000000000..da89874866 --- /dev/null +++ b/ets2panda/test/runtime/ets/re_export/import.ets.expected.err @@ -0,0 +1,16 @@ +# +# Copyright (c) 2025 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +E/verifier: Cannot link class: Cannot find class Lexport_elements/ScaleOption; in boot panda files: [/home/huawei/gitee/ark_2073/build/plugins/ets/etsstdlib.abc, /home/huawei/gitee/ark_2073/wd2/ets-runtime/intermediate/re_export/import.ets.abc] +E/verifier: Cannot link class: Cannot find class Lexport_elements/ScaleOption2; in boot panda files: [/home/huawei/gitee/ark_2073/build/plugins/ets/etsstdlib.abc, /home/huawei/gitee/ark_2073/wd2/ets-runtime/intermediate/re_export/import.ets.abc] \ No newline at end of file diff --git a/ets2panda/test/runtime/ets/register_overflow.ets.expected.err b/ets2panda/test/runtime/ets/register_overflow.ets.expected.err new file mode 100644 index 0000000000..2572f90827 --- /dev/null +++ b/ets2panda/test/runtime/ets/register_overflow.ets.expected.err @@ -0,0 +1,15 @@ +# +# Copyright (c) 2025 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +E/bytecode_optimizer: Unable to optimize register_overflow.ETSGLOBAL._$init$_:void;: Function frame size is larger than allowed one \ No newline at end of file diff --git a/ets2panda/test/runtime/ets/union_call.ets.expected.err b/ets2panda/test/runtime/ets/union_call.ets.expected.err new file mode 100644 index 0000000000..810a7d6bf4 --- /dev/null +++ b/ets2panda/test/runtime/ets/union_call.ets.expected.err @@ -0,0 +1,15 @@ +# +# Copyright (c) 2025 Huawei Device Co., Ltd. +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# +E/bytecode_optimizer: Optimizing union_call.ETSGLOBAL.foo:{Uunion_call.A,union_call.B};i32;: IR builder failed! \ No newline at end of file -- Gitee