Skip to content

Commit 46931c9

Browse files
Ramakrishna PallalaAnas Nashif
authored andcommitted
tests: posix: Resolve header file dependencies
Fixed header file dependencies by reordering the inclusion sequence in posix tests. Signed-off-by: Ramakrishna Pallala <[email protected]>
1 parent f603e60 commit 46931c9

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

tests/posix/posix_checks/src/posix_checks.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
#include <time.h>
8-
#include <pthread.h>
97
#include <ztest.h>
8+
#include <pthread.h>
9+
#include <time.h>
1010

1111
#define DURATION_SECS 1
1212
#define DURATION_NSECS 0

tests/posix/pthread_equal/src/pthread_equal.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7-
#include <pthread.h>
87
#include <ztest.h>
8+
#include <pthread.h>
99

1010
#define STACKSZ 1024
1111

tests/posix/pthread_rwlock/src/posix_rwlock.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7+
#include <ztest.h>
78
#include <pthread.h>
8-
#include "ztest.h"
99

1010
#define N_THR 3
1111
#define STACKSZ 1024

tests/posix/semaphore/src/sem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7+
#include <ztest.h>
78
#include <errno.h>
89
#include <pthread.h>
910
#include <semaphore.h>
10-
#include <ztest.h>
1111
#include <misc/printk.h>
1212

1313
#define STACK_SIZE 1024

tests/posix/timer/src/posix_timer.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
* SPDX-License-Identifier: Apache-2.0
55
*/
66

7+
#include <ztest.h>
78
#include <time.h>
89
#include <pthread.h>
9-
#include <ztest.h>
1010

1111
#define SECS_TO_SLEEP 2
1212
#define DURATION_SECS 1

0 commit comments

Comments
 (0)