Skip to content

Test fails but doesn't fail as expected (tests/interp/m98m99/12-M99-endless-main-program changed output) #4537

Description

@BsAtHome

The test in tests/interp/m98m99/12-M99-endless-main-program changed after @grandixximo #4441 merge we get the output:

--- expected.motion-logger	2026-08-26 13:18:16.903654087 +0200
+++ out.motion-logger	2026-09-14 15:41:11.731367523 +0200
@@ -194,6 +194,7 @@
 JOG_ABORT joint=15
 ABORT
 SPINDLE_OFF
+SS_ENABLE
 ENABLE
 COORD
 JOG_ABORT joint=0

The real problem is that the test is marked xfail and that means that it is supposed to fail. However, it has not failed for a very long time and we've all gotten used to the message *** /home/runner/work/linuxcnc/linuxcnc/tests/interp/m98m99/12-M99-endless-main-program: XPASS: Passed, but was expected to fail.

Now the output changed and nobody caught it because CI lets it pass. We told it to let it pass...

Either the program marked xfail does fail and only passes if it fails. Or, we let it pass and it must always pass. This intermediate state we have now is the same as what happened in #4397 and it will happen again and again as long as we let non-failing tests that should fail pass.

The other solution is to disable or remove this test if it does not serve any proper purpose.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions