diff options
Diffstat (limited to 'libtomcrypt/testprof/test.c')
-rw-r--r-- | libtomcrypt/testprof/test.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/libtomcrypt/testprof/test.c b/libtomcrypt/testprof/test.c new file mode 100644 index 0000000..5a38421 --- /dev/null +++ b/libtomcrypt/testprof/test.c @@ -0,0 +1,13 @@ +#include <tomcrypt_test.h> + +void run_cmd(int res, int line, char *file, char *cmd) +{ + if (res != CRYPT_OK) { + fprintf(stderr, "%s (%d)\n%s:%d:%s\n", error_to_string(res), res, file, line, cmd); + exit(EXIT_FAILURE); + } +} + +/* $Source: /cvs/libtom/libtomcrypt/testprof/test.c,v $ */ +/* $Revision: 1.6 $ */ +/* $Date: 2005/05/05 14:35:59 $ */ |