diff options
author | Darren Tucker <dtucker@zip.com.au> | 2017-04-28 14:33:43 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@zip.com.au> | 2017-04-28 14:33:43 +1000 |
commit | 9504ea6b27f9f0ece64e88582ebb9235e664a100 (patch) | |
tree | 55063109f9a1ff26ac91823046605b3715372a38 /regress/integrity.sh | |
parent | 06ec837a34542627e2183a412d6a9d2236f22140 (diff) |
Merge integrity.sh rev 1.22.
Merge missing bits from Colin Watson's patch in bz#2658 which make integrity
tests more robust against timeouts. ok djm@
Diffstat (limited to 'regress/integrity.sh')
-rw-r--r-- | regress/integrity.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/regress/integrity.sh b/regress/integrity.sh index 978234d00..b71aa46fd 100644 --- a/regress/integrity.sh +++ b/regress/integrity.sh | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: integrity.sh,v 1.21 2017/04/28 04:00:14 dtucker Exp $ | 1 | # $OpenBSD: integrity.sh,v 1.22 2017/04/28 04:16:27 dtucker Exp $ |
2 | # Placed in the Public Domain. | 2 | # Placed in the Public Domain. |
3 | 3 | ||
4 | tid="integrity" | 4 | tid="integrity" |
@@ -60,14 +60,16 @@ for m in $macs; do | |||
60 | Corrupted?MAC* | *message?authentication?code?incorrect*) | 60 | Corrupted?MAC* | *message?authentication?code?incorrect*) |
61 | emac=`expr $emac + 1`; skip=0;; | 61 | emac=`expr $emac + 1`; skip=0;; |
62 | padding*) epad=`expr $epad + 1`; skip=0;; | 62 | padding*) epad=`expr $epad + 1`; skip=0;; |
63 | *Timeout,?server*) | ||
64 | etmo=`expr $etmo + 1`; skip=0;; | ||
63 | *) fail "unexpected error mac $m at $off: $out";; | 65 | *) fail "unexpected error mac $m at $off: $out";; |
64 | esac | 66 | esac |
65 | done | 67 | done |
66 | verbose "test $tid: $ecnt errors: mac $emac padding $epad length $elen" | 68 | verbose "test $tid: $ecnt errors: mac $emac padding $epad length $elen timeout $etmo" |
67 | if [ $emac -eq 0 ]; then | 69 | if [ $emac -eq 0 ]; then |
68 | fail "$m: no mac errors" | 70 | fail "$m: no mac errors" |
69 | fi | 71 | fi |
70 | expect=`expr $ecnt - $epad - $elen` | 72 | expect=`expr $ecnt - $epad - $elen - $etmo` |
71 | if [ $emac -ne $expect ]; then | 73 | if [ $emac -ne $expect ]; then |
72 | fail "$m: expected $expect mac errors, got $emac" | 74 | fail "$m: expected $expect mac errors, got $emac" |
73 | fi | 75 | fi |