comparison des.c @ 651:825b98750e38 libavutil

100l, don't run tests twice, this was some forgotten debugging code.
author reimar
date Tue, 03 Feb 2009 18:04:52 +0000
parents 8e35c6f747dc
children 634bcf10f5df
comparison
equal deleted inserted replaced
650:8e35c6f747dc 651:825b98750e38
404 av_des_crypt(&d, tmp, plain, 1, NULL, 0); 404 av_des_crypt(&d, tmp, plain, 1, NULL, 0);
405 if (memcmp(tmp, crypt, sizeof(crypt))) { 405 if (memcmp(tmp, crypt, sizeof(crypt))) {
406 printf("Public API decryption failed\n"); 406 printf("Public API decryption failed\n");
407 return 1; 407 return 1;
408 } 408 }
409 run_test(0, 0); run_test(0, 1); run_test(1, 0); run_test(1, 1);
410 if (!run_test(0, 0) || !run_test(0, 1) || !run_test(1, 0) || !run_test(1, 1)) { 409 if (!run_test(0, 0) || !run_test(0, 1) || !run_test(1, 0) || !run_test(1, 1)) {
411 printf("Partial Monte-Carlo test failed\n"); 410 printf("Partial Monte-Carlo test failed\n");
412 return 1; 411 return 1;
413 } 412 }
414 for (i = 0; i < 1000000; i++) { 413 for (i = 0; i < 1000000; i++) {