File tree Expand file tree Collapse file tree 4 files changed +512
-2
lines changed Expand file tree Collapse file tree 4 files changed +512
-2
lines changed Original file line number Diff line number Diff line change @@ -389,6 +389,22 @@ if(CONFIG_TESTING_DRIVER_TEST)
389
389
drivertest_pm.c)
390
390
endif ()
391
391
392
+ if (CONFIG_PM AND CONFIG_SMP)
393
+ nuttx_add_application(
394
+ NAME
395
+ cmocka_driver_pm_smp
396
+ PRIORITY
397
+ ${CONFIG_TESTING_DRIVER_TEST_PRIORITY}
398
+ STACKSIZE
399
+ ${CONFIG_TESTING_DRIVER_TEST_STACKSIZE}
400
+ MODULE
401
+ ${CONFIG_TESTING_DRIVER_TEST}
402
+ DEPENDS
403
+ cmocka
404
+ SRCS
405
+ drivertest_pm_smp.c)
406
+ endif ()
407
+
392
408
if (CONFIG_PM_RUNTIME)
393
409
nuttx_add_application(
394
410
NAME
Original file line number Diff line number Diff line change @@ -140,9 +140,13 @@ PROGNAME += cmocka_driver_mps2_zerointerrupt
140
140
endif
141
141
endif
142
142
143
- ifneq ($(CONFIG_PM ) ,)
143
+ ifeq ($(CONFIG_PM ) ,y )
144
144
MAINSRC += drivertest_pm.c
145
145
PROGNAME += cmocka_driver_pm
146
+ ifeq ($(CONFIG_SMP ) ,y)
147
+ MAINSRC += drivertest_pm_smp.c
148
+ PROGNAME += cmocka_driver_pm_smp
149
+ endif
146
150
endif
147
151
148
152
ifneq ($(CONFIG_PM_RUNTIME ) ,)
Original file line number Diff line number Diff line change @@ -277,7 +277,7 @@ static void test_pm(FAR void **argv)
277
277
278
278
/* test when pm prepare succeeded */
279
279
280
- test_pm_fake_driver_init () ;
280
+ g_test_pm_dev . prepare_fail = false ;
281
281
282
282
for (int state = 0 ; state < PM_COUNT ; state ++ )
283
283
{
You can’t perform that action at this time.
0 commit comments