test_driver.c 321 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$ */
  12. /* $Revision$ */
  13. /* $Date$ */