commit | a15be9eca1b7e935917d834284726027dffc8cfb | [log] [tgz] |
---|---|---|
author | Clément Faure <clement.faure@arm.com> | Wed May 07 13:54:36 2025 +0000 |
committer | Jerome Forissier <jerome@forissier.org> | Mon Jun 16 14:36:56 2025 +0200 |
tree | ccd1adb9c70df502393590fe5ac28d7e93d43d83 | |
parent | 2762195e889bf9c7a5dad901fdc6aea101900323 [diff] |
regression_1000: Re-order the include of <sys/stat.h> header With musl, the compilation of optee-test would fail: | GEN optee-test/4.6.0/optee-test-4.6.0/xtest/regression_8100_ca_crt.h | python3 ../../scripts/file_to_c.py --inf ../../cert/ca.crt --out optee-test/4.6.0/optee-test-4.6.0/xtest/regression_8100_ca_crt.h --name regression_8100_ca_crt | In file included from optee-test/4.6.0/recipe-sysroot/usr/include/sys/stat.h:30, | from optee-test/host/xtest/regression_1000.c:24: | optee-test/4.6.0/recipe-sysroot/usr/include/bits/stat.h:17:26: error: expected identifier or '(' before '[' token | 17 | unsigned __unused[2]; | | ^ The defintion of OP-TEE macro __unused conflicts with the musl implementation and its use of variables named __unused. Re-ordering and including <sys/stat.h> before the macro gets defined is enough to work around the issue. Signed-off-by: Clément Faure <clement.faure@arm.com> Acked-by: Jerome Forissier <jerome.forissier@linaro.org>
This git contains source code for the test suite (xtest) used to test the OP-TEE project.
All official OP-TEE documentation has moved to http://optee.readthedocs.io. The information that used to be here in this git can be found under optee_test.
// OP-TEE core maintainers