diff --git a/tests/test_app/common_func.c b/tests/test_app/common_func.c index 1ed83e73f674d0c83174266b6e32a43b7e67495e..91ad7c84b4c36ec484dc3b863a830b400cf7a5b9 100644 --- a/tests/test_app/common_func.c +++ b/tests/test_app/common_func.c @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: MulanPSL-2.0 */ #include #include #include diff --git a/tests/test_app/test_app.c b/tests/test_app/test_app.c index dbf3085a3ed6b889cc424a20346f3db89e983a8a..a1959d735aed0b9a4f51029394e50b09b15ee094 100644 --- a/tests/test_app/test_app.c +++ b/tests/test_app/test_app.c @@ -1,10 +1,13 @@ -#include +/* SPDX-License-Identifier: MulanPSL-2.0 */ +#define _GNU_SOURCE +#include #include #include #include #include #include #include +#include extern int lib1_add(int a, int b); extern int lib2_add(int a, int b); diff --git a/tests/test_app/util1.c b/tests/test_app/util1.c index 12d361f1c0f8fba16f19e0108b8a4b30ba66248e..6299b95aa80e9de04369f5da497aaecd90545f96 100644 --- a/tests/test_app/util1.c +++ b/tests/test_app/util1.c @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: MulanPSL-2.0 */ #include __attribute__((constructor)) void constructor_in_lib1(void) diff --git a/tests/test_app/util2.c b/tests/test_app/util2.c index f31148c9b5833c2418600fe090ffe5547d7e3eff..cdfcfe704ad1a5e396bb93992259384fa33dd489 100644 --- a/tests/test_app/util2.c +++ b/tests/test_app/util2.c @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: MulanPSL-2.0 */ #include // __thread int g_thread_lib21 = 5; diff --git a/tests/test_ifunc/test_ifunc.c b/tests/test_ifunc/test_ifunc.c index 2b0aa0f11caacebcce5049ac800c2a590be68e8f..7082e26c91ba031167c394c58971fda31346a10b 100644 --- a/tests/test_ifunc/test_ifunc.c +++ b/tests/test_ifunc/test_ifunc.c @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: MulanPSL-2.0 */ #include #include #include diff --git a/tests/test_simple/Makefile b/tests/test_simple/Makefile index 90a317f6a51a13c9e5e5351bea355686476e2e1d..a2b2318ad11774bed017f49981dd1f9247056f15 100644 --- a/tests/test_simple/Makefile +++ b/tests/test_simple/Makefile @@ -1,5 +1,5 @@ # SPDX-License-Identifier: MulanPSL-2.0 -ROOT_DIR=../../../ +ROOT_DIR=../../ BUILD_DIR=$(ROOT_DIR)build/ SYSBOOST=$(BUILD_DIR)sysboost/sysboost TEST_APP=$(BUILD_DIR)sysboost/tests/test_simple/simple_app diff --git a/tests/test_simple/simple_app.c b/tests/test_simple/simple_app.c index 5110d01d9e272c0fe0b14f90288caaf0926881a8..634c3fc5b86d4d4d8498baf0f47629f6e2c2bcad 100644 --- a/tests/test_simple/simple_app.c +++ b/tests/test_simple/simple_app.c @@ -1,3 +1,4 @@ +/* SPDX-License-Identifier: MulanPSL-2.0 */ #include int main(void)