Skip to content

test(split): cover closed stdin exit#641

Merged
rewolff merged 5 commits into
traviscross:masterfrom
Komzpa:darafei/split-nohup-test
May 25, 2026
Merged

test(split): cover closed stdin exit#641
rewolff merged 5 commits into
traviscross:masterfrom
Komzpa:darafei/split-nohup-test

Conversation

@Komzpa

@Komzpa Komzpa commented May 8, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add a regression test for split mode with stdin connected to /dev/null
  • assert mtr --split -c 1 exits instead of spinning on a readable closed stdin fd

Fixes #231.

The runtime behavior is already protected by the current isatty(STDIN_FILENO) guard in ui/split.c; this PR keeps that historical nohup failure mode covered by the command parser test suite.

Tests

  • git diff --check
  • ./bootstrap.sh && ./configure --without-gtk --without-jansson && make -j "$(nproc)"
  • sudo python3 ./test/cmdparse.py

@Komzpa Komzpa force-pushed the darafei/split-nohup-test branch from 8484938 to dc448bf Compare May 9, 2026 09:45
@Komzpa Komzpa force-pushed the darafei/split-nohup-test branch from dc448bf to 5666b9f Compare May 25, 2026 11:45
@rewolff rewolff merged commit 5666b9f into traviscross:master May 25, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MTR does not play nice with nohup

2 participants