t/lib.sh: work around a OpenBSD bug

Upstream report: https://marc.info/?i=871rnjhncc.fsf%20()%20vuxu%20!%20org
pull/174/head
Leah Neukirchen 4 years ago
parent fb77179bbd
commit d777d370dd

@ -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
}

Loading…
Cancel
Save