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 bc325d8427ebb61ae2ce05eef6153bc59df712e6..457908d768132b1b2a79b60d481c0dbe811eeb5e 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 @@ -1052,23 +1052,6 @@ HWTEST_F(NeuralNetworkRuntimeTest, compilation_build_001, testing::ext::TestSize EXPECT_EQ(OH_NN_INVALID_PARAMETER, ret); } -/* - * @tc.name: compilation_build_002 - * @tc.desc: Verify the success of the OH_NNCompilation_Build function. - * @tc.type: FUNC - */ -HWTEST_F(NeuralNetworkRuntimeTest, compilation_build_002, testing::ext::TestSize.Level0) -{ - InnerModel innerModel; - EXPECT_EQ(OH_NN_SUCCESS, BuildModel(innerModel)); - - OH_NNModel* model = reinterpret_cast(&innerModel); - OH_NNCompilation* nnCompilation = OH_NNCompilation_Construct(model); - - OH_NN_ReturnCode ret = OH_NNCompilation_Build(nnCompilation); - EXPECT_EQ(OH_NN_SUCCESS, ret); -} - /* * @tc.name: compilation_destroy_001 * @tc.desc: Verify the OH_NNCompilation is nullptr of the OH_NNCompilation_Destroy function. 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 41d7f539f1248663fc4dd04a507b8c74846114ae..018c3af6c0e8951f1235dec0685ab5ad57a20d1e 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 @@ -998,23 +998,6 @@ HWTEST_F(NeuralNetworkRuntimeTest, compilation_build_001, testing::ext::TestSize EXPECT_EQ(OH_NN_INVALID_PARAMETER, ret); } -/* - * @tc.name: compilation_build_002 - * @tc.desc: Verify the success of the OH_NNCompilation_Build function. - * @tc.type: FUNC - */ -HWTEST_F(NeuralNetworkRuntimeTest, compilation_build_002, testing::ext::TestSize.Level0) -{ - InnerModel innerModel; - EXPECT_EQ(OH_NN_SUCCESS, BuildModel(innerModel)); - - OH_NNModel* model = reinterpret_cast(&innerModel); - OH_NNCompilation* nnCompilation = OH_NNCompilation_Construct(model); - - OH_NN_ReturnCode ret = OH_NNCompilation_Build(nnCompilation); - EXPECT_EQ(OH_NN_SUCCESS, ret); -} - /* * @tc.name: compilation_destroy_001 * @tc.desc: Verify the OH_NNCompilation is nullptr of the OH_NNCompilation_Destroy function.