Skip to content

Pty hangup checks in test-pty block instead of failing #275

Description

@doanbaotrung

The hangup checks in tests/test-pty.c read from a master that is
expected to be hung up. Without the support in place those reads block
forever rather than returning EIO, so a run against a tree that lacks it
hangs instead of failing -- a control run took ten minutes and had to be
killed.

A test that guards a fix should fail when the fix is absent, not wedge
the suite. tests/test-devpts.c already takes this position for its pty
round trip: signal(SIGALRM, handler) plus alarm(10) around the blocking
reads, cleared with alarm(0) once they complete.

Applying the same guard to the hangup block would keep a regression
visible in CI rather than turning it into a timeout.

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