test: sandbox: fix invalid_use_of_IF_ENABLED_INT if BLOBLIST=n
authorEvgeny Bachinin <EABachinin@salutedevices.com>
Mon, 2 Dec 2024 13:45:23 +0000 (16:45 +0300)
committerTom Rini <trini@konsulko.com>
Wed, 18 Dec 2024 21:19:16 +0000 (15:19 -0600)
commit844f87366e1dfcca25e46a31aca3788e2bb3a43d
tree6bfd0a7c5b42137d57fd426fa40e2e84c25a279d
parente5178be68678e0c010cb11d107679aa8ed96e648
test: sandbox: fix invalid_use_of_IF_ENABLED_INT if BLOBLIST=n

Having CONFIG_OF_EMBED=y && CONFIG_BLOBLIST=n leads to the link
error:
```
ld: /tmp/ccRVty.ltrans40.ltrans.o: in function `lib_test_is_enabled':
test/lib/kconfig.c:24: undefined reference to \
                                       `invalid_use_of_IF_ENABLED_INT'
ld: test/lib/kconfig.c:26: undefined reference to \
                                `invalid_use_of_CONFIG_IF_ENABLED_INT'
```

Fixes: 29784d62ede ("test: Add some tests for kconfig.h")
Signed-off-by: Evgeny Bachinin <EABachinin@salutedevices.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
test/lib/kconfig.c