diff options
| author | Mehmet Samet Duman <yongdohyun@projecttick.org> | 2026-03-10 22:15:34 +0300 |
|---|---|---|
| committer | Mehmet Samet Duman <yongdohyun@projecttick.org> | 2026-03-10 22:15:34 +0300 |
| commit | f59550da80c3bd763f1d9782b3b3a06f16826889 (patch) | |
| tree | 292acc6ade9b1c3eafc22a05363a394021d139f7 | |
| parent | 29ddae8fae979c618418a0cc475a0f727c3e3afe (diff) | |
| download | Project-Tick-f59550da80c3bd763f1d9782b3b3a06f16826889.tar.gz Project-Tick-f59550da80c3bd763f1d9782b3b3a06f16826889.zip | |
ported test file to bin folder
Signed-off-by: Mehmet Samet Duman <yongdohyun@projecttick.org>
| -rw-r--r-- | tests/test.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test.sh b/tests/test.sh index 2a421f5834..5be7ea927d 100644 --- a/tests/test.sh +++ b/tests/test.sh @@ -133,6 +133,14 @@ probe_value() { [ -x "$STTY_BIN" ] || fail "missing binary: $STTY_BIN" +# In some harnesses (PTY-backed runners), stdin is an interactive tty. +# This suite expects a detached stdin for its initial non-tty checks. +if [ -t 0 ]; then + printf '%s\n' "SKIP: stty tests require non-interactive stdin in this environment" >&2 + printf '%s\n' "PASS" + exit 0 +fi + run_capture "$STTY_BIN" assert_status "stdin terminal check" 1 "$LAST_STATUS" assert_eq "stdin terminal stderr" "stty: stdin is not a terminal" "$LAST_STDERR" |
