Fix common test framework options
[openssl.git] / test / x509_dup_cert_test.c
index ebea488b10ea260fe2cc6d78a2c1741770803386..b0bf1b9598c0f904678c8eac68d95d82c4997851 100644 (file)
@@ -37,8 +37,14 @@ OPT_TEST_DECLARE_USAGE("cert.pem...\n")
 
 int setup_tests(void)
 {
-    size_t n = test_get_argument_count();
+    size_t n;
 
+    if (!test_skip_common_options()) {
+        TEST_error("Error parsing test options\n");
+        return 0;
+    }
+
+    n = test_get_argument_count();
     if (!TEST_int_gt(n, 0))
         return 0;