linuxcnc/tests/tlo
Sebastian Kuzminsky 55f0014069 tests: fix a spurious failure of the tlo test
Part of the tlo test runs a deliberately incorrect g-code and checks
for the expected error message from LinuxCNC.

It's possible that LinuxCNC generates an unrelated error messages
before we run the bad g-code.  Specifically, we sometimes get this one
in the buildbot:

    Unexpected realtime delay on task 0
    This Message will only display once per session.
    Run the Latency Test and resolve before continuing.

This unexpected error message would confuse the test and it would fail.

This commit tries to reduce the likelihood of a spurious test failure for
this reason by draining the error queue before running the bad g-code.
There's still a possibility that the unexpected error will be generated
after we drain the error queue but before we run the bad g-code, but
this does make things significantly better.

Signed-off-by: Sebastian Kuzminsky <seb@highlab.com>
2015-01-20 08:02:16 -07:00
..
.gitignore tests: add a test of G43 & G43.2 2014-07-14 14:50:54 -05:00
checkresult tests: add a test of G43 & G43.2 2014-07-14 14:50:54 -05:00
core_sim.hal tests: fix a spurious false failure in the tlo test 2014-11-03 20:48:45 -07:00
g43-test.ini tests: add a test of G43 & G43.2 2014-07-14 14:50:54 -05:00
postgui.hal tests: add a test of G43 & G43.2 2014-07-14 14:50:54 -05:00
simpockets.tbl.original tests: add a test of G43 & G43.2 2014-07-14 14:50:54 -05:00
test-ui.py tests: fix a spurious failure of the tlo test 2015-01-20 08:02:16 -07:00
test.sh Start with a clean var file each time, since we might have rotated 2014-07-14 14:50:54 -05:00