Skip to content

Commit

Permalink
Update encoder test case
Browse files Browse the repository at this point in the history
  • Loading branch information
vintagepc committed Apr 25, 2024
1 parent a59fd76 commit 7473f71
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions hw/arm/prusa/stm32_tests/mini404_encoder_test.c
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,20 @@ static void test_key_push(void)
qtest_clock_step(ts, 100U*1E6); // 100ms
g_assert_true(qtest_get_irq(ts,0));

// Emulate a keypress
g_free(qtest_hmp(ts, "sendkey l"));

g_assert_false(qtest_get_irq(ts,0));

qtest_clock_step(ts, 2000U*1E6); // 100ms

g_assert_true(qtest_get_irq(ts,0));

// no further changes.
qtest_clock_step(ts, 100U*1E6); // 100ms
g_assert_true(qtest_get_irq(ts,0));


qtest_quit(ts);
}

Expand Down

0 comments on commit 7473f71

Please sign in to comment.