tests: Minor modifications and fixes - sbase - suckless unix tools
HTML git clone git://git.suckless.org/sbase
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 40a4999b60355a8e498f1d228469aeca17f9a698
DIR parent 6edd9510c2321fe4198c7d5a41db4a692a38c252
HTML Author: Roberto E. Vargas Caballero <k0ga@shike2.net>
Date: Mon, 19 Jan 2026 16:25:04 +0100
tests: Minor modifications and fixes
Diffstat:
M tests/0045-dc.sh | 2 +-
D tests/0046-dc.c | 22 ----------------------
R tests/0026-tr.sh -> tests/0047-tr.… | 0
M tests/Makefile | 2 +-
4 files changed, 2 insertions(+), 24 deletions(-)
---
DIR diff --git a/tests/0045-dc.sh b/tests/0045-dc.sh
@@ -9,7 +9,7 @@ trap 'exit $?' HUP INT TERM
echo 0 > $tmp
-../dc -i <<'EOF' | diff -u - $tmp
+$EXEC ../dc -i <<'EOF' | diff -u - $tmp
[ 0 Lxs. 2Q]s<128>
[ .7853981633974483096156608458198757210492923498437764 1/ Lxs. 3Q]s<130>
[K 52><130> ]s<129>
DIR diff --git a/tests/0046-dc.c b/tests/0046-dc.c
@@ -1,22 +0,0 @@
-#!/bin/sh
-
-set -e
-
-tmp1=$$.tmp1
-tmp2=$$.tmp2
-
-trap 'rm -f $tmp1 $tmp2' EXIT
-trap 'exit $?' HUP INT TERM
-
-cat <<EOF >$tmp1
-../dc: stack empty
-5
-148.41315910257660342111
-EOF
-
-echo 5p >$tmp2
-
-../dc $tmp2 <<EOF 2>&1 | diff -u - $tmp1
-`echo 'e(5)' | ../bc -c ../bc.library`
-la sa sa sa
-EOF
DIR diff --git a/tests/0026-tr.sh b/tests/0047-tr.sh
DIR diff --git a/tests/Makefile b/tests/Makefile
@@ -3,4 +3,4 @@ all:
clean:
rm -f test.log
- rm -f tmp*
+ rm -rf tmp*