From ecc5e9a1aaa6cec3a9163e3d14f9f65f3d14cc1d Mon Sep 17 00:00:00 2001 From: l00580197 Date: Sat, 8 Jul 2023 10:33:45 +0800 Subject: [PATCH] fix codecheck for test Signed-off-by: l00580197 --- tests/test_app/common_func.c | 13 ++++++++++++- tests/test_app/test_app.c | 13 ++++++++++++- tests/test_app/util1.c | 13 ++++++++++++- tests/test_app/util2.c | 13 +++++++++++++ 4 files changed, 49 insertions(+), 3 deletions(-) diff --git a/tests/test_app/common_func.c b/tests/test_app/common_func.c index 13bef50..3c4af2b 100644 --- a/tests/test_app/common_func.c +++ b/tests/test_app/common_func.c @@ -1,4 +1,15 @@ -/* SPDX-License-Identifier: MulanPSL-2.0 */ +// Copyright (c) 2023 Huawei Technologies Co.,Ltd. All rights reserved. +// +// sysboost is licensed under Mulan PSL v2. +// You can use this software according to the terms and conditions of the Mulan +// PSL v2. +// You may obtain a copy of Mulan PSL v2 at: +// http://license.coscl.org.cn/MulanPSL2 +// THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY +// KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO +// NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +// See the Mulan PSL v2 for more details. + #include int run_b(int a, int b) diff --git a/tests/test_app/test_app.c b/tests/test_app/test_app.c index c2c4f55..1d77b0f 100644 --- a/tests/test_app/test_app.c +++ b/tests/test_app/test_app.c @@ -1,4 +1,15 @@ -/* SPDX-License-Identifier: MulanPSL-2.0 */ +// Copyright (c) 2023 Huawei Technologies Co.,Ltd. All rights reserved. +// +// sysboost is licensed under Mulan PSL v2. +// You can use this software according to the terms and conditions of the Mulan +// PSL v2. +// You may obtain a copy of Mulan PSL v2 at: +// http://license.coscl.org.cn/MulanPSL2 +// THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY +// KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO +// NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +// See the Mulan PSL v2 for more details. + #define _GNU_SOURCE #define __USE_GNU 1 #include diff --git a/tests/test_app/util1.c b/tests/test_app/util1.c index 6299b95..e8f5300 100644 --- a/tests/test_app/util1.c +++ b/tests/test_app/util1.c @@ -1,4 +1,15 @@ -/* SPDX-License-Identifier: MulanPSL-2.0 */ +// Copyright (c) 2023 Huawei Technologies Co.,Ltd. All rights reserved. +// +// sysboost is licensed under Mulan PSL v2. +// You can use this software according to the terms and conditions of the Mulan +// PSL v2. +// You may obtain a copy of Mulan PSL v2 at: +// http://license.coscl.org.cn/MulanPSL2 +// THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY +// KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO +// NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +// See the Mulan PSL v2 for more details. + #include __attribute__((constructor)) void constructor_in_lib1(void) diff --git a/tests/test_app/util2.c b/tests/test_app/util2.c index 9a7014c..7498b2c 100644 --- a/tests/test_app/util2.c +++ b/tests/test_app/util2.c @@ -1,4 +1,17 @@ /* SPDX-License-Identifier: MulanPSL-2.0 */ +// Copyright (c) 2023 Huawei Technologies Co.,Ltd. All rights reserved. +// +// sysboost is licensed under Mulan PSL v2. +// You can use this software according to the terms and conditions of the Mulan +// PSL v2. +// You may obtain a copy of Mulan PSL v2 at: +// http://license.coscl.org.cn/MulanPSL2 +// THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY +// KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO +// NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. +// See the Mulan PSL v2 for more details. + +#include // __thread int g_thread_lib21 = 5; // __thread int g_thread_lib22 = 6; -- Gitee