diff options
Diffstat (limited to 'zephyr/test/drivers/default/src/motion_sense/motion_sense.c')
-rw-r--r-- | zephyr/test/drivers/default/src/motion_sense/motion_sense.c | 20 |
1 files changed, 2 insertions, 18 deletions
diff --git a/zephyr/test/drivers/default/src/motion_sense/motion_sense.c b/zephyr/test/drivers/default/src/motion_sense/motion_sense.c index 8291e0e1c6..42ee056874 100644 --- a/zephyr/test/drivers/default/src/motion_sense/motion_sense.c +++ b/zephyr/test/drivers/default/src/motion_sense/motion_sense.c @@ -3,12 +3,10 @@ * found in the LICENSE file. */ -#include "motion_sense.h" -#include "test/drivers/test_state.h" - #include <zephyr/ztest.h> -extern enum chipset_state_mask sensor_active; +#include "motion_sense.h" +#include "test/drivers/test_state.h" ZTEST_SUITE(motion_sense, drivers_predicate_post_main, NULL, NULL, NULL, NULL); @@ -35,17 +33,3 @@ ZTEST_USER(motion_sense, ec_motion_sensor_clamp_i16) zassert_equal(ec_motion_sensor_clamp_i16(INT16_MIN - 1), INT16_MIN, NULL); } - -ZTEST_USER(motion_sense, ec_motion_sense_get_ec_config) -{ - /* illegal state, should be translated to S5 */ - sensor_active = 42; - zassert_equal(motion_sense_get_ec_config(), SENSOR_CONFIG_EC_S5); - /* all valid states */ - sensor_active = SENSOR_ACTIVE_S0; - zassert_equal(motion_sense_get_ec_config(), SENSOR_CONFIG_EC_S0); - sensor_active = SENSOR_ACTIVE_S3; - zassert_equal(motion_sense_get_ec_config(), SENSOR_CONFIG_EC_S3); - sensor_active = SENSOR_ACTIVE_S5; - zassert_equal(motion_sense_get_ec_config(), SENSOR_CONFIG_EC_S5); -} |