Skip to content

Batch equivalence ignores DISPLAY / SYSOUT: a port that writes the wrong job-log message is still proven #4056

Closed

Description

@squid-protocol

What. The batch equivalence proof never compares what the program DISPLAYs (SYSOUT, the job log). Found by mutation testing (#4047, 2026-09-30): in all three batch ports sampled, a mutant that changes only a DISPLAYed message survives:

  • POSTTRAN: "ERROR OPENING DALYTRAN" -> "XRROR OPENING DALYTRAN", proven;
  • INTCALC: "ERROR OPENING DALY REJECTS FILE" -> "XRROR ...", proven;
  • TRNRPT: displayIoStatus(st); deleted, proven.

Operators and support teams read the job log: messages, file statuses and counts written there are how a failed run is diagnosed, and some shops parse them. A port that writes the wrong message, or none, is not equivalent.

Fix:

  • COBOL side: the step's stdout is already captured (stdout.txt); keep it per run (normal and fault runs).
  • Java side: give the generated runtime a SYSOUT sink (DISPLAY -> a Sysout the test captures to out/SYSOUT), and state in the port ticket's rules that every DISPLAY goes there, not to a logger.
  • Compare it line by line in compare_run (a declared difference -- Declared differences: equivalence except where a person approved a difference #4051 -- may exclude volatile lines such as timestamps).

Done when: the three mutants above are killed, and the committed ports are re-proven (with the ticket rule, a port may need its DISPLAYs routed; that is an honest finding, not a regression).

Part of epic #4055 (the product is the proof).

🤖 Generated with Claude Code

Activity

  1. added
    bug
    testing
    legacy-modernization
    on Oct 1, 2026
  2. added 2 commits that reference this issue on Oct 1, 2026
  3. added
    scope:core
    on Oct 16, 2026
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

    buglegacy-modernizationscope:coretesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions