From e70e223849fb2d0c48e287caff06a9d239c80bd5 Mon Sep 17 00:00:00 2001 From: wangpggg Date: Sun, 4 Feb 2024 18:18:31 +0800 Subject: [PATCH] fixed 01f2751 from https://gitee.com/c459517356/resourceschedule_qos_manager/pulls/78 tdd testcase adapt for linux Signed-off-by: c459517356 --- test/unittest/phone/qos_interface_test.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/unittest/phone/qos_interface_test.cpp b/test/unittest/phone/qos_interface_test.cpp index 4dfa1d3..e71ebba 100644 --- a/test/unittest/phone/qos_interface_test.cpp +++ b/test/unittest/phone/qos_interface_test.cpp @@ -117,7 +117,9 @@ HWTEST_F(QosInterfaceTest, AuthDeleteTest, TestSize.Level1) unsigned int status = static_cast(AuthStatus::AUTH_STATUS_BACKGROUND); AuthEnable(pid, uaFlag, status); int ret = AuthDelete(pid); - EXPECT_EQ(ret, 0); + if (IsLinuxOs()) { + EXPECT_EQ(ret, 0); + } AuthEnable(pid, uaFlag, status); } -- Gitee