From 9ee05eadc77558b5d184a2a1e48ad083b68bcf6f Mon Sep 17 00:00:00 2001 From: sunmingze Date: Tue, 25 Apr 2023 09:52:02 +0800 Subject: [PATCH] modify detail Signed-off-by: sunmingze --- .../device_attestQuerry_posix/BUILD.gn | 2 +- .../src/device_attest_querry.cpp | 16 ++-------------- .../device_attestStart_hal/BUILD.gn | 2 +- .../device_attestStart_hal/src/device_attest.c | 2 +- .../device_attestStart_posix/BUILD.gn | 2 +- 5 files changed, 6 insertions(+), 18 deletions(-) diff --git a/xts_lite/device_attest_lite/device_attestQuerry_posix/BUILD.gn b/xts_lite/device_attest_lite/device_attestQuerry_posix/BUILD.gn index b985c51db..e476b8a54 100644 --- a/xts_lite/device_attest_lite/device_attestQuerry_posix/BUILD.gn +++ b/xts_lite/device_attest_lite/device_attestQuerry_posix/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Huawei Device Co., Ltd. +# Copyright (c) 2023 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at diff --git a/xts_lite/device_attest_lite/device_attestQuerry_posix/src/device_attest_querry.cpp b/xts_lite/device_attest_lite/device_attestQuerry_posix/src/device_attest_querry.cpp index f2266af80..f65c2ed5d 100644 --- a/xts_lite/device_attest_lite/device_attestQuerry_posix/src/device_attest_querry.cpp +++ b/xts_lite/device_attest_lite/device_attestQuerry_posix/src/device_attest_querry.cpp @@ -119,7 +119,6 @@ HWTEST_F(DeviceAttestQuerryTest, subDeviceAttestTest0200, Function | MediumTest * @tc.name : HiLog::Warn parameter legal test (Cortex-A, C) * @tc.desc : [C- SOFTWARE -0200] */ -#ifdef __LINUX__ HWTEST_F(DeviceAttestQuerryTest, subDeviceAttestTest0300, Function | MediumTest | Level1) { int32_t ret = DEVATTEST_SUCCESS; @@ -131,21 +130,10 @@ HWTEST_F(DeviceAttestQuerryTest, subDeviceAttestTest0300, Function | MediumTest printf("[CLIENT MAIN] query.\n"); ret = GetAttestStatus(&attestResultInfo); printf("[CLIENT MAIN] wrong. ret:%d\n", ret); +#ifdef __LINUX__ EXPECT_EQ(ret, DEVATTEST_SUCCESS); -} #else -HWTEST_F(DeviceAttestQuerryTest, subDeviceAttestTest0300, Function | MediumTest | Level1) -{ - int32_t ret = DEVATTEST_SUCCESS; - ret = StartDevAttestTask(); - printf("[CLIENT MAIN] StartDevAttestTask ret:%d.\n", ret); - EXPECT_EQ(ret, DEVATTEST_SUCCESS); - AttestResultInfo attestResultInfo = { 0 }; - attestResultInfo.ticket = NULL; - printf("[CLIENT MAIN] query.\n"); - ret = GetAttestStatus(&attestResultInfo); - printf("[CLIENT MAIN] wrong. ret:%d\n", ret); EXPECT_FALSE(ret == DEVATTEST_SUCCESS); -} #endif +} diff --git a/xts_lite/device_attest_lite/device_attestStart_hal/BUILD.gn b/xts_lite/device_attest_lite/device_attestStart_hal/BUILD.gn index d025aba94..66a50a0a1 100644 --- a/xts_lite/device_attest_lite/device_attestStart_hal/BUILD.gn +++ b/xts_lite/device_attest_lite/device_attestStart_hal/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2020 Huawei Device Co., Ltd. +# Copyright (c) 2023 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at diff --git a/xts_lite/device_attest_lite/device_attestStart_hal/src/device_attest.c b/xts_lite/device_attest_lite/device_attestStart_hal/src/device_attest.c index d2496ad8b..b610a1bf8 100644 --- a/xts_lite/device_attest_lite/device_attestStart_hal/src/device_attest.c +++ b/xts_lite/device_attest_lite/device_attestStart_hal/src/device_attest.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2023 Huawei Device Co., Ltd. * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at diff --git a/xts_lite/device_attest_lite/device_attestStart_posix/BUILD.gn b/xts_lite/device_attest_lite/device_attestStart_posix/BUILD.gn index edf427e74..9b23d576a 100644 --- a/xts_lite/device_attest_lite/device_attestStart_posix/BUILD.gn +++ b/xts_lite/device_attest_lite/device_attestStart_posix/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Huawei Device Co., Ltd. +# Copyright (c) 2023 Huawei Device Co., Ltd. # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at -- GitLab