Add main() test methods to reduce test boilerplate.
[openssl.git] / test / mdc2_internal_test.c
index 3353507c63196b88f5851274648bdb0b515a18cf..9acea21c8446f8d0f53e2a3451d0d995e08abe0b 100644 (file)
@@ -14,6 +14,7 @@
 
 #include <openssl/mdc2.h>
 #include "testutil.h"
+#include "test_main.h"
 #include "e_os.h"
 
 typedef struct {
@@ -63,9 +64,7 @@ static int test_mdc2(int idx)
     return 1;
 }
 
-int main(int argc, char **argv)
+void register_tests()
 {
     ADD_ALL_TESTS(test_mdc2, OSSL_NELEM(tests));
-
-    return run_tests(argv[0]);
 }