From fc91b80b74a7f797b8fa4f1092425f91915f8f09 Mon Sep 17 00:00:00 2001 From: w30052974 Date: Tue, 21 Jan 2025 19:52:22 +0800 Subject: [PATCH] =?UTF-8?q?ut=20=E7=94=A8=E4=BE=8B=E5=8D=95=E7=AE=97?= =?UTF-8?q?=E5=AD=90=E6=88=90=E5=8A=9F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: w30052974 --- .../neural_network_runtime_test/neural_network_runtime_test.cpp | 2 +- .../neural_network_runtime_test/neural_network_runtime_test.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/unittest/components/v1_0/neural_network_runtime_test/neural_network_runtime_test.cpp b/test/unittest/components/v1_0/neural_network_runtime_test/neural_network_runtime_test.cpp index 94b27e2..acf94ef 100644 --- a/test/unittest/components/v1_0/neural_network_runtime_test/neural_network_runtime_test.cpp +++ b/test/unittest/components/v1_0/neural_network_runtime_test/neural_network_runtime_test.cpp @@ -1065,7 +1065,7 @@ HWTEST_F(NeuralNetworkRuntimeTest, compilation_build_002, testing::ext::TestSize OH_NNCompilation* nnCompilation = OH_NNCompilation_Construct(model); OH_NN_ReturnCode ret = OH_NNCompilation_Build(nnCompilation); - EXPECT_EQ(OH_NN_FAILED, ret); + EXPECT_EQ(OH_NN_SUCCESS, ret); } /* diff --git a/test/unittest/components/v2_0/neural_network_runtime_test/neural_network_runtime_test.cpp b/test/unittest/components/v2_0/neural_network_runtime_test/neural_network_runtime_test.cpp index a318a4e..7c505ee 100644 --- a/test/unittest/components/v2_0/neural_network_runtime_test/neural_network_runtime_test.cpp +++ b/test/unittest/components/v2_0/neural_network_runtime_test/neural_network_runtime_test.cpp @@ -1026,7 +1026,7 @@ HWTEST_F(NeuralNetworkRuntimeTest, compilation_build_002, testing::ext::TestSize OH_NNCompilation* nnCompilation = OH_NNCompilation_Construct(model); OH_NN_ReturnCode ret = OH_NNCompilation_Build(nnCompilation); - EXPECT_EQ(OH_NN_FAILED, ret); + EXPECT_EQ(OH_NN_SUCCESS, ret); } /* -- Gitee