未验证 提交 6cf14274 编写于 作者: O openharmony_ci 提交者: Gitee

!9654 SetCache_0500用例修改

Merge pull request !9654 from scholar-lc/master
......@@ -258,7 +258,7 @@ HWTEST_F(CompileTest, SUB_AI_NNRt_Func_North_Compilation_SetCache_0400, Function
/**
* @tc.number : SUB_AI_NNRt_Func_North_Compilation_SetCache_0500
* @tc.name : 设置cache路径,cache不完整
* @tc.name : 设置cache路径,cache破坏,重新生成cache
* @tc.desc : [C- SOFTWARE -0200]
*/
HWTEST_F(CompileTest, SUB_AI_NNRt_Func_North_Compilation_SetCache_0500, Function | MediumTest | Level2)
......@@ -276,7 +276,7 @@ HWTEST_F(CompileTest, SUB_AI_NNRt_Func_North_Compilation_SetCache_0500, Function
.cacheDir = "./cache",
.cacheVersion = 10,
};
ASSERT_EQ(OH_NN_INVALID_FILE, CompileGraphMock(compilation, compileParam));
ASSERT_EQ(OH_NN_SUCCESS, CompileGraphMock(compilation, compileParam));
Free(model, compilation);
}
......
......@@ -258,7 +258,7 @@ HWTEST_F(CompileTest, SUB_AI_NNRt_Func_North_Compilation_SetCache_0400, Function
/**
* @tc.number : SUB_AI_NNRt_Func_North_Compilation_SetCache_0500
* @tc.name : 设置cache路径,cache不完整
* @tc.name : 设置cache路径,cache破坏,重新生成cache
* @tc.desc : [C- SOFTWARE -0200]
*/
HWTEST_F(CompileTest, SUB_AI_NNRt_Func_North_Compilation_SetCache_0500, Function | MediumTest | Level2)
......@@ -276,7 +276,7 @@ HWTEST_F(CompileTest, SUB_AI_NNRt_Func_North_Compilation_SetCache_0500, Function
.cacheDir = "./cache",
.cacheVersion = 10,
};
ASSERT_EQ(OH_NN_INVALID_FILE, CompileGraphMock(compilation, compileParam));
ASSERT_EQ(OH_NN_SUCCESS, CompileGraphMock(compilation, compileParam));
Free(model, compilation);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册