]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Add unit test for httpAssembleUUID.
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Tue, 25 Jun 2013 00:57:09 +0000 (00:57 +0000)
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>
Tue, 25 Jun 2013 00:57:09 +0000 (00:57 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11051 a1ca3aef-8c08-0410-bb20-df032aa958be

cups/testhttp.c

index 6b1a14d25bf8857243773d64ab08df7e7aaf4dbc..3599cea47d1104d94a7138e7c3b394fabb1d3d71 100644 (file)
@@ -492,6 +492,21 @@ main(int  argc,                            /* I - Number of command-line arguments */
     if (!j)
       printf("PASS (%d URIs tested)\n", k);
 
+   /*
+    * httpAssembleUUID
+    */
+
+    fputs("httpAssembleUUID: ", stdout);
+    httpAssembleUUID("hostname.example.com", 631, "printer", 12345, buffer,
+                     sizeof(buffer));
+    if (strncmp(buffer, "urn:uuid:", 9))
+    {
+      printf("FAIL (%s)\n", buffer);
+      failures ++;
+    }
+    else
+      printf("PASS (%s)\n", buffer);
+
    /*
     * Show a summary and return...
     */