test_a_deferred_handler_is_not_inside_the_interrupt

Tests › tests/test_context_conflicts.py

passed Passed in the packaged run.

What this test is for

Why it exists

`binding` means "a reference someone else will call later, at a time and on a thread this edge says nothing about". Getting work OUT of an interrupt by binding a handler is the pattern every RTOS documents, so traversing that edge would report the correct pattern as the violation — and thread membership traverses it, which is why this closure does not.

Given

  1. rows = _rows(_run(tmp_path))
→

When

  1. —
→

Then

  1. ✓ rows does not contain ("blocking_call", "k_sem_take", 80)
  2. ✓ rows does not contain ("blocking_call", "vTaskDelay", 95)
  3. ✓ rows does not contain ("blocking_lock", "bus_lock", 90)

tests/test_context_conflicts.py:172 · its file's page

What it checks (3)

  1. assert ("blocking_call", "k_sem_take", 80) not in rows, ( "deferred_work runs on a workqueue thread, where blocking is legal" ) observes _rows via rows
  2. assert ("blocking_call", "vTaskDelay", 95) not in rows, "task_loop is not an interrupt path" observes _rows via rows
  3. assert ("blocking_lock", "bus_lock", 90) not in rows, "task_loop is not an interrupt path" observes _rows via rows

Where the product reaches it

Call flow

test_a_deferred_handler_is_not_inside_the_interrupt→_rows→_run

What it reaches

Each row runs from this test, through the calls it makes, to the code a requirement names. If that code breaks, the test's checks are what should catch it. Reaching is not proving: a check only proves what it observes. No mutation records were given, so these rows say what the test REACHES.

test_a_deferred_handler_is_not_inside_the_interrupt · 3 checks_run_context_db_ensure_threads_tablesREQ-DDB-QUERY-011 · measured_run_context_db_ensure_threads_tablesREQ-DDB-SCHEMA-001 · measured_run_context_db_ensure_threads_tablesREQ-DDB-SCHEMA-007 · measured_runextract_context_conflictsREQ-DDB-SCHEMA-011 · measured
Also reaches 5 requirements

Its run touches their code; that is reach, not proof.