test.c 234 B

123456789
  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. exit(EXIT_FAILURE);
  7. }
  8. }