test: drivers: counter: Test passes even when no instances are found #45647
Labels
area: Counter
bug
The issue is a bug, or the PR is fixing a bug
priority: low
Low impact/importance bug
Stale
Describe the bug
Test count iterates over each counter instance and perform the test, however if no instances are found test suite is indicated as pass.
To Reproduce
Steps to reproduce the behavior:
@@ -146,6 +146,7 @@ static void counter_tear_down_instance(const char *dev_name)
static void test_all_instances(counter_test_func_t func,
counter_capability_func_t capability_check)
{
Expected behavior
If instances are not found, test should fail
Impact
Low test coverage for counter drivers when getting enabled
Logs and console output
The text was updated successfully, but these errors were encountered: