未验证 提交 8672201d 编写于 作者: O openharmony_ci 提交者: Gitee

!4627 测试套修改回退处理

Merge pull request !4627 from 易细/master
...@@ -110,7 +110,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_Start_test_002, Level1) ...@@ -110,7 +110,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_Start_test_002, Level1)
EXPECT_EQ(RET_OK, retStatus); EXPECT_EQ(RET_OK, retStatus);
retStatus = recInstance->Start(); retStatus = recInstance->Start();
sleep(1); sleep(1);
EXPECT_EQ(RET_OK, retStatus); EXPECT_NE(RET_OK, retStatus);
retStatus = recInstance->Release(); retStatus = recInstance->Release();
delete recInstance; delete recInstance;
recInstance = nullptr; recInstance = nullptr;
...@@ -174,7 +174,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_Pause_test_002, Level1) ...@@ -174,7 +174,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_Pause_test_002, Level1)
retStatus = recInstance->Pause(); retStatus = recInstance->Pause();
EXPECT_EQ(RET_OK, retStatus); EXPECT_EQ(RET_OK, retStatus);
retStatus = recInstance->Pause(); retStatus = recInstance->Pause();
EXPECT_EQ(RET_OK, retStatus); EXPECT_NE(RET_OK, retStatus);
retStatus = recInstance->Release(); retStatus = recInstance->Release();
delete recInstance; delete recInstance;
recInstance = nullptr; recInstance = nullptr;
...@@ -244,7 +244,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_Resume_test_002, Level1) ...@@ -244,7 +244,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_Resume_test_002, Level1)
retStatus = recInstance->Resume(); retStatus = recInstance->Resume();
EXPECT_EQ(RET_OK, retStatus); EXPECT_EQ(RET_OK, retStatus);
retStatus = recInstance->Resume(); retStatus = recInstance->Resume();
EXPECT_EQ(RET_OK, retStatus); EXPECT_NE(RET_OK, retStatus);
retStatus = recInstance->Release(); retStatus = recInstance->Release();
delete recInstance; delete recInstance;
recInstance = nullptr; recInstance = nullptr;
...@@ -308,7 +308,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_Stop_test_002, Level1) ...@@ -308,7 +308,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_Stop_test_002, Level1)
retStatus = recInstance->Stop(true); retStatus = recInstance->Stop(true);
EXPECT_EQ(RET_OK, retStatus); EXPECT_EQ(RET_OK, retStatus);
retStatus = recInstance->Stop(true); retStatus = recInstance->Stop(true);
EXPECT_EQ(RET_OK, retStatus); EXPECT_NE(RET_OK, retStatus);
retStatus = recInstance->Release(); retStatus = recInstance->Release();
delete recInstance; delete recInstance;
recInstance = nullptr; recInstance = nullptr;
...@@ -572,7 +572,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_SetFileSplitDuration_test_004, Leve ...@@ -572,7 +572,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_SetFileSplitDuration_test_004, Leve
retStatus = recInstance->Pause(); retStatus = recInstance->Pause();
EXPECT_EQ(RET_OK, retStatus); EXPECT_EQ(RET_OK, retStatus);
retStatus = recInstance->SetFileSplitDuration(type, timestamp, duration); retStatus = recInstance->SetFileSplitDuration(type, timestamp, duration);
EXPECT_EQ(RET_OK, retStatus); EXPECT_NE(RET_OK, retStatus);
retStatus = recInstance->Release(); retStatus = recInstance->Release();
delete recInstance; delete recInstance;
recInstance = nullptr; recInstance = nullptr;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册