Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/regress/lib/libskey Fix obvious pasto resulting in third tes...



details:   https://anonhg.NetBSD.org/src/rev/47d01e66fc18
branches:  trunk
changeset: 495556:47d01e66fc18
user:      mjl <mjl%NetBSD.org@localhost>
date:      Mon Jul 31 12:22:39 2000 +0000

description:
Fix obvious pasto resulting in third test series never being done.

diffstat:

 regress/lib/libskey/skeytest.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (24 lines):

diff -r ee2086dddc20 -r 47d01e66fc18 regress/lib/libskey/skeytest.c
--- a/regress/lib/libskey/skeytest.c    Mon Jul 31 11:45:48 2000 +0000
+++ b/regress/lib/libskey/skeytest.c    Mon Jul 31 12:22:39 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: skeytest.c,v 1.1 2000/07/06 22:35:58 mjl Exp $ */
+/* $NetBSD: skeytest.c,v 1.2 2000/07/31 12:22:39 mjl Exp $ */
 
 /* This is a regression test for the S/Key implementation
        against the data set from Appendix C of RFC2289 */
@@ -70,11 +70,12 @@
 
                        for(j=1; j<99; j++)
                                f(data);
+                       btoa8(prn, data);
 
-                       if(strcasecmp(prn, rr->one))
+                       if(strcasecmp(prn, rr->nine))
                                {
                                errors++;
-                               printf("Set %d, round 1, %s: Expected %s and got %s\n", i, rr->algo, rr->one, prn);
+                               printf("Set %d, round 99, %s: Expected %s and got %s\n", i, rr->algo, rr->nine, prn);
                                }
 
                        }



Home | Main Index | Thread Index | Old Index