summaryrefslogtreecommitdiffstats
path: root/tests/util.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2025-04-15 10:40:30 -0400
committerTavian Barnes <tavianator@tavianator.com>2025-04-16 10:04:47 -0400
commit7102fec257835302cb4978160bba4cbebd0b63e1 (patch)
treee3834b7a8054f17426decfb4518e3f53e0d73c35 /tests/util.sh
parent52e1a31d6513fe9179f756b61881b5f440d2972e (diff)
downloadbfs-7102fec257835302cb4978160bba4cbebd0b63e1.tar.xz
tests: Switch from unbuffer to ptyx
unbuffer is part of expect, which is not actively maintained. This recently led to a CI failure on NetBSD which looked like can't find package Expect while executing "package require Expect" (file "/usr/pkg/bin/unbuffer" line 6) Rather than debug this, I just reimplemented unbuffer myself. This also reduces our test dependencies, which is nice. Link: https://sourceforge.net/p/expect/bugs/107/ Link: https://github.com/tavianator/bfs/actions/runs/14421150823/job/40444068385
Diffstat (limited to 'tests/util.sh')
-rw-r--r--tests/util.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/util.sh b/tests/util.sh
index d8b7036..b846d45 100644
--- a/tests/util.sh
+++ b/tests/util.sh
@@ -16,6 +16,7 @@ ROOT=$(_realpath "$(dirname -- "$TESTS")")
TESTS="$ROOT/tests"
BIN="$ROOT/bin"
MKSOCK="$BIN/tests/mksock"
+PTYX="$BIN/tests/ptyx"
XTOUCH="$BIN/tests/xtouch"
UNAME=$(uname)