(main): return a relevant return value

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@6463 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-07-14 15:37:49 +00:00
parent 439ad99768
commit 5af4587f1b

View File

@@ -82,6 +82,7 @@ main(int argc, char **argv)
{ {
unsigned char data[MAXSIZE]; unsigned char data[MAXSIZE];
struct testcase *t; struct testcase *t;
int ret = 0;
for (t = tests; t->str; ++t) { for (t = tests; t->str; ++t) {
int i; int i;
@@ -92,11 +93,12 @@ main(int argc, char **argv)
printf ("should be: "); printf ("should be: ");
for (i = 0; i < t->n; ++i) for (i = 0; i < t->n; ++i)
printf ("%02x", t->res[i]); printf ("%02x", t->res[i]);
printf ("\nresult ws: "); printf ("\nresult was: ");
for (i = 0; i < t->n; ++i) for (i = 0; i < t->n; ++i)
printf ("%02x", t->res[i]); printf ("%02x", t->res[i]);
printf ("\n"); printf ("\n");
ret = 1;
} }
} }
return 0; return ret;
} }