test_driver.c 400 B

123456789101112131415
  1. #include <tomcrypt_test.h>
  2. void run_cmd(int res, int line, char *file, char *cmd)
  3. {
  4. if (res != CRYPT_OK) {
  5. fprintf(stderr, "%s (%d)\n%s:%d:%s\n", error_to_string(res), res, file, line, cmd);
  6. if (res != CRYPT_NOP) {
  7. exit(EXIT_FAILURE);
  8. }
  9. }
  10. }
  11. /* $Source: /cvs/libtom/libtomcrypt/testprof/test_driver.c,v $ */
  12. /* $Revision: 1.2 $ */
  13. /* $Date: 2006/11/13 23:14:33 $ */