← Commit list

5ef7fa39d5

Daniel Stenberg
Daniel Stenberg
2026-01-04
SUCCESS Duration: 304s

Subject

tool_getparam: use UNITTEST not, ifdef

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

src/tool_getparam.c+5 -4
@@ -377,10 +377,11 @@ static const struct LongShort aliases[]= {
/* Split the argument of -E to 'certname' and 'passphrase' separated by colon.
* We allow ':' and '\' to be escaped by '\' so that we can use certificate
* nicknames containing ':'. See <https://sourceforge.net/p/curl/bugs/1196/>
- * for details. */
-#ifndef UNITTESTS
-static
-#endif
+ * for details.
+ *
+ * Unit test 1394
+ */
+UNITTEST
ParameterError parse_cert_parameter(const char *cert_parameter,
char **certname,
char **passphrase)