Skip to content

Commit 23dd233

Browse files
dulibo1xiaoxiang781216
authored andcommitted
drivertest:add include file depended by cmocka
from the cmocka.h: * These headers or their equivalents MUST be included prior to including * this header file. * @code * #include <stdarg.h> * #include <stddef.h> * #include <stdint.h> * #include <setjmp.h> * @Endcode Signed-off-by: dulibo1 <[email protected]> Signed-off-by: buxiasen <[email protected]>
1 parent b295d5d commit 23dd233

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

testing/drivertest/drivertest_pm_runtime.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@
2828
#include <stdint.h>
2929
#include <stdio.h>
3030
#include <stdlib.h>
31+
#include <stdarg.h>
32+
#include <stddef.h>
33+
#include <setjmp.h>
3134
#include <string.h>
32-
#include <pthread.h>
3335
#include <cmocka.h>
3436
#include <nuttx/power/pm_runtime.h>
3537

testing/drivertest/drivertest_regulator.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@
2828
#include <stdint.h>
2929
#include <stdio.h>
3030
#include <stdlib.h>
31+
#include <stdarg.h>
32+
#include <stddef.h>
33+
#include <setjmp.h>
3134
#include <string.h>
32-
#include <pthread.h>
3335
#include <cmocka.h>
3436
#include <nuttx/power/consumer.h>
3537

0 commit comments

Comments
 (0)