Wed Oct 19 00:11:43 1994 Theodore Y. Ts'o (tytso@maytag)
+ * debug.h (assert):
+ krb5_encode_test.c (main):
+ krb5_decode_test.c (main): Exit with a non-zero exit status when
+ the test suite detects errors.
+
* ktest.c (ktest_destroy_enc_data): Clear the kvno field when
destroying the encrypted data.
#define assert(pred,message)\
if(pred) printf("OK: ");\
- else printf("ERROR: ");\
+ else { printf("ERROR: "); error_count++; }\
printf(message);
#endif
#include "debug.h"
#include <string.h>
-/* See krb5_encode_test.c for explanation. */
-/*#define ISODE_SUCKS*/
+int error_count = 0;
void main()
{
decode_run("PasswdData","","30 3D A0 03 02 01 02 A1 36 30 34 30 18 A0 0A 04 08 6B 72 62 35 64 61 74 61 A1 0A 04 08 6B 72 62 35 64 61 74 61 30 18 A0 0A 04 08 6B 72 62 35 64 61 74 61 A1 0A 04 08 6B 72 62 35 64 61 74 61",decode_krb5_pwd_data,ktest_equal_krb5_pwd_data);
}
- exit(0);
+ exit(error_count);
}
#include "debug.h"
-/* The ISODE routines crashed when certain fields were omitted (even
- though they were optional). My encoders should handle any NULL
- fields (both optional and non-optional) gracefully, so this #define
- is probably no longer needed. */
-/*#define ISODE_SUCKS*/
+int error_count = 0;
void main()
{
encode_run(pd,krb5_pwd_data,"pwd_data","",encode_krb5_pwd_data);
}
- exit(0);
+ exit(error_count);
}