| aaa90d07 | 30-Oct-2024 |
Pei Xiao <[email protected]> |
iio: test : check null return of kunit_kmalloc in iio_rescale_test_scale
kunit_kmalloc may fail, return value might be NULL and will cause NULL pointer dereference.Add KUNIT_ASSERT_NOT_ERR_OR_NULL f
iio: test : check null return of kunit_kmalloc in iio_rescale_test_scale
kunit_kmalloc may fail, return value might be NULL and will cause NULL pointer dereference.Add KUNIT_ASSERT_NOT_ERR_OR_NULL fix it.
Signed-off-by: Pei Xiao <[email protected]> Fixes: 8e74a48d17d5 ("iio: test: add basic tests for the iio-rescale driver") Link: https://patch.msgid.link/ecd56a85e54a96c2f0313c114075a21a76071ea2.1730259869.git.xiaopei01@kylinos.cn Signed-off-by: Jonathan Cameron <[email protected]>
show more ...
|
| 0565d238 | 10-Jul-2022 |
Liam Beguin <[email protected]> |
iio: test: rework Kconfig to support modules
Rework the IIO test Kconfig to support building KUnit tests as modules. This lets users execute tests at runtime in addition to the usual tools/testing/k
iio: test: rework Kconfig to support modules
Rework the IIO test Kconfig to support building KUnit tests as modules. This lets users execute tests at runtime in addition to the usual tools/testing/kunit/kunit.py script.
Signed-off-by: Liam Beguin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
show more ...
|
| cf9a4b58 | 10-Jul-2022 |
Liam Beguin <[email protected]> |
iio: afe: rescale: export symbols used during testing
In preparation for module support, export symbols use during testing.
Signed-off-by: Liam Beguin <[email protected]> Link: https://lore.kern
iio: afe: rescale: export symbols used during testing
In preparation for module support, export symbols use during testing.
Signed-off-by: Liam Beguin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
show more ...
|
| 1c796caf | 10-Jul-2022 |
Liam Beguin <[email protected]> |
iio: test: format: follow CONFIG_ naming convention
The KUnit documentation indicates that all KUnit Kconfig entries must match CONFIG_<name>_KUNIT_TEST: where <name> is the name of the test suite.
iio: test: format: follow CONFIG_ naming convention
The KUnit documentation indicates that all KUnit Kconfig entries must match CONFIG_<name>_KUNIT_TEST: where <name> is the name of the test suite. Rename the IIO_TEST_FORMAT configuration accordingly.
Signed-off-by: Liam Beguin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
show more ...
|
| 520f94b6 | 10-Jul-2022 |
Liam Beguin <[email protected]> |
iio: test: format: add MODULE_* information
In preparation for module support, add missing MODULE_* information.
Signed-off-by: Liam Beguin <[email protected]> Link: https://lore.kernel.org/r/20
iio: test: format: add MODULE_* information
In preparation for module support, add missing MODULE_* information.
Signed-off-by: Liam Beguin <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jonathan Cameron <[email protected]>
show more ...
|