From 9d6dbf7785e31e48c8a791be82279a221eb92ce9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=98=93=E7=BB=86?= Date: Tue, 26 Jul 2022 09:29:11 +0000 Subject: [PATCH] =?UTF-8?q?=E5=9B=9E=E9=80=80=20Signed-off-by:=20yangtikun?= =?UTF-8?q??= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../recorder_native/src/ActsMediaRecorderTest.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/multimedia_lite/media_lite_posix/recorder_native/src/ActsMediaRecorderTest.cpp b/multimedia_lite/media_lite_posix/recorder_native/src/ActsMediaRecorderTest.cpp index 7c750280d..6151e3223 100644 --- a/multimedia_lite/media_lite_posix/recorder_native/src/ActsMediaRecorderTest.cpp +++ b/multimedia_lite/media_lite_posix/recorder_native/src/ActsMediaRecorderTest.cpp @@ -110,7 +110,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_Start_test_002, Level1) EXPECT_EQ(RET_OK, retStatus); retStatus = recInstance->Start(); sleep(1); - EXPECT_EQ(RET_OK, retStatus); + EXPECT_NE(RET_OK, retStatus); retStatus = recInstance->Release(); delete recInstance; recInstance = nullptr; @@ -174,7 +174,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_Pause_test_002, Level1) retStatus = recInstance->Pause(); EXPECT_EQ(RET_OK, retStatus); retStatus = recInstance->Pause(); - EXPECT_EQ(RET_OK, retStatus); + EXPECT_NE(RET_OK, retStatus); retStatus = recInstance->Release(); delete recInstance; recInstance = nullptr; @@ -244,7 +244,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_Resume_test_002, Level1) retStatus = recInstance->Resume(); EXPECT_EQ(RET_OK, retStatus); retStatus = recInstance->Resume(); - EXPECT_EQ(RET_OK, retStatus); + EXPECT_NE(RET_OK, retStatus); retStatus = recInstance->Release(); delete recInstance; recInstance = nullptr; @@ -308,7 +308,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_Stop_test_002, Level1) retStatus = recInstance->Stop(true); EXPECT_EQ(RET_OK, retStatus); retStatus = recInstance->Stop(true); - EXPECT_EQ(RET_OK, retStatus); + EXPECT_NE(RET_OK, retStatus); retStatus = recInstance->Release(); delete recInstance; recInstance = nullptr; @@ -572,7 +572,7 @@ HWTEST_F(RecoderLiteTest, medialite_recorder_SetFileSplitDuration_test_004, Leve retStatus = recInstance->Pause(); EXPECT_EQ(RET_OK, retStatus); retStatus = recInstance->SetFileSplitDuration(type, timestamp, duration); - EXPECT_EQ(RET_OK, retStatus); + EXPECT_NE(RET_OK, retStatus); retStatus = recInstance->Release(); delete recInstance; recInstance = nullptr; -- GitLab