zephyr/tests/lib
Martí Bolívar ffc03124c1 devicetree: make DT_PROP_HAS_IDX expand to 0 or 1
We have a use case for checking the results of a DT_PROP_HAS_IDX()
call with COND_CODE_1(). That won't work because its expansion is an
integer comparison; COND_CODE_1() expects a literal 1 or 0.

Adjust the macro implementation so it expands to a literal 1 or 0.
Make this work even when the index argument needs an expansion while
we're at it.

Fixes: #29833
Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
2020-11-15 08:44:56 -06:00
..
c_lib
cmsis_dsp tests: lib: cmsis:transform: cf64 min_ram reorder test to fit 96k 2020-09-10 09:37:35 +02:00
devicetree/api devicetree: make DT_PROP_HAS_IDX expand to 0 or 1 2020-11-15 08:44:56 -06:00
fdtable tests: lib: fdtable: fix tests after modifying reference counting 2020-08-27 11:42:19 +03:00
gui/lvgl tests: lib: gui: Enable new config flags 2020-11-01 10:51:00 -05:00
heap tests: heap: exclude on qemu_xtensa 2020-09-30 14:11:59 -04:00
heap_align lib/os/heap: Correct aligned_alloc sizing for small heaps 2020-10-23 12:52:04 -04:00
json
mem_alloc tests: mem_alloc: workaround aggressive optimization 2020-10-06 11:41:23 -04:00
notify
onoff tests: onoff: use typedef for spinlock key 2020-10-06 19:56:51 -04:00
ringbuffer tests: lib: ringbuffer: Add performance test 2020-11-11 13:17:49 +01:00
sprintf libc: switch to cbprintf as basis for printf functionality 2020-11-13 06:38:01 -05:00