about summary refs log tree commit diff
path: root/t
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2020-05-16 18:54:39 +0200
committerLeah Neukirchen <leah@vuxu.org>2020-05-16 18:54:39 +0200
commitd777d370dd378da8b2b91f8255e841b42906f5ac (patch)
tree94ccdf3e56246b67b4ff6733fe2aaa99c85a4437 /t
parentfb77179bbd46970308c06cb6601c6cd56e8be576 (diff)
downloadmblaze-d777d370dd378da8b2b91f8255e841b42906f5ac.tar.gz
mblaze-d777d370dd378da8b2b91f8255e841b42906f5ac.tar.xz
mblaze-d777d370dd378da8b2b91f8255e841b42906f5ac.zip
t/lib.sh: work around a OpenBSD bug
Upstream report: https://marc.info/?i=871rnjhncc.fsf%20()%20vuxu%20!%20org
Diffstat (limited to 't')
-rw-r--r--t/lib.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/lib.sh b/t/lib.sh
index 567250b..0f346d6 100644
--- a/t/lib.sh
+++ b/t/lib.sh
@@ -28,8 +28,8 @@ check_test() {
 check_same() {
 	msg=$1
 	shift
-	eval "$1" 2>/dev/null 1>&2 >out1 || true
-	eval "$2" 2>/dev/null 1>&2 >out2 || true
+	eval "$1 || true" 2>/dev/null 1>&2 >out1 || true
+	eval "$2 || true" 2>/dev/null 1>&2 >out2 || true
 	diff -u out1 out2 || true
 	check "$msg" cmp out1 out2
 }