Add main() test methods to reduce test boilerplate.
[openssl.git] / test / asn1_internal_test.c
index 6a5fce40813427d089eab54fcfc3396c4db34cdb..b7e8af0e2cb6338eacd2d0cead920f07243fca4a 100644 (file)
@@ -15,6 +15,7 @@
 #include <openssl/asn1.h>
 #include <openssl/evp.h>
 #include <openssl/objects.h>
+#include "test_main.h"
 #include "testutil.h"
 #include "e_os.h"
 
@@ -90,10 +91,8 @@ static int test_standard_methods()
     return 0;
 }
 
-int main(int argc, char **argv)
+void register_tests(void)
 {
     ADD_TEST(test_tbl_standard);
     ADD_TEST(test_standard_methods);
-
-    return run_tests(argv[0]);
 }