mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-31 01:35:11 +02:00
- djm@cvs.openbsd.org 2014/05/21 07:04:21
[regress/integrity.sh] when failing because of unexpected output, show the offending output
This commit is contained in:
parent
5a96707ffc
commit
43d3ed2dd3
@ -81,6 +81,9 @@
|
|||||||
[regress/Makefile]
|
[regress/Makefile]
|
||||||
unit tests for new buffer API; including basic fuzz testing
|
unit tests for new buffer API; including basic fuzz testing
|
||||||
NB. Id sync only.
|
NB. Id sync only.
|
||||||
|
- djm@cvs.openbsd.org 2014/05/21 07:04:21
|
||||||
|
[regress/integrity.sh]
|
||||||
|
when failing because of unexpected output, show the offending output
|
||||||
|
|
||||||
20140618
|
20140618
|
||||||
- (tim) [openssh/session.c] Work around to get chroot sftp working on UnixWare
|
- (tim) [openssh/session.c] Work around to get chroot sftp working on UnixWare
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# $OpenBSD: integrity.sh,v 1.13 2014/04/21 22:15:37 djm Exp $
|
# $OpenBSD: integrity.sh,v 1.14 2014/05/21 07:04:21 djm Exp $
|
||||||
# Placed in the Public Domain.
|
# Placed in the Public Domain.
|
||||||
|
|
||||||
tid="integrity"
|
tid="integrity"
|
||||||
@ -54,14 +54,14 @@ for m in $macs; do
|
|||||||
fail "ssh -m $m succeeds with bit-flip at $off"
|
fail "ssh -m $m succeeds with bit-flip at $off"
|
||||||
fi
|
fi
|
||||||
ecnt=`expr $ecnt + 1`
|
ecnt=`expr $ecnt + 1`
|
||||||
output=$(tail -2 $TEST_SSH_LOGFILE | egrep -v "^debug" | \
|
out=$(tail -2 $TEST_SSH_LOGFILE | egrep -v "^debug" | \
|
||||||
tr -s '\r\n' '.')
|
tr -s '\r\n' '.')
|
||||||
case "$output" in
|
case "$out" in
|
||||||
Bad?packet*) elen=`expr $elen + 1`; skip=3;;
|
Bad?packet*) elen=`expr $elen + 1`; skip=3;;
|
||||||
Corrupted?MAC* | Decryption?integrity?check?failed*)
|
Corrupted?MAC* | Decryption?integrity?check?failed*)
|
||||||
emac=`expr $emac + 1`; skip=0;;
|
emac=`expr $emac + 1`; skip=0;;
|
||||||
padding*) epad=`expr $epad + 1`; skip=0;;
|
padding*) epad=`expr $epad + 1`; skip=0;;
|
||||||
*) fail "unexpected error mac $m at $off";;
|
*) fail "unexpected error mac $m at $off: $out";;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
verbose "test $tid: $ecnt errors: mac $emac padding $epad length $elen"
|
verbose "test $tid: $ecnt errors: mac $emac padding $epad length $elen"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user