From 4208463d417f1043f89a373f27ccbd5c3cc71e6e Mon Sep 17 00:00:00 2001 From: Abhinav Srivastava Date: Fri, 26 Jan 2024 04:44:22 -0500 Subject: [PATCH] posix: fix stropts_h.c faulty imports and function usage --- tests/posix/headers/src/stropts_h.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/tests/posix/headers/src/stropts_h.c b/tests/posix/headers/src/stropts_h.c index 46e97a6d4cffe76..9cc2cb7ea6c8c3d 100644 --- a/tests/posix/headers/src/stropts_h.c +++ b/tests/posix/headers/src/stropts_h.c @@ -1,6 +1,5 @@ -#include #include -#include +#include "_common.h" /** * @brief Test existence and basic functionality of stropts.h * @@ -14,12 +13,3 @@ ZTEST(posix_headers, test_stropts_h) zassert_true(sizeof(((struct strbuf *)0)->len) > 0, "len size is 0"); zassert_true(sizeof(((struct strbuf *)0)->buf) > 0, "buf size is 0"); } - -void test_main(void) -{ - ztest_test_suite(posix_stropts_test, - ztest_unit_test(test_stropts_h) - ); - - ztest_run_test_suite(posix_stropts_test); -}