From: msweet Date: Tue, 25 Jun 2013 00:57:09 +0000 (+0000) Subject: Add unit test for httpAssembleUUID. X-Git-Tag: release-1.7rc1~32 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71f294cef9c3bcdacb093984bccca1c016527c7e;p=thirdparty%2Fcups.git Add unit test for httpAssembleUUID. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11051 a1ca3aef-8c08-0410-bb20-df032aa958be --- diff --git a/cups/testhttp.c b/cups/testhttp.c index 6b1a14d25b..3599cea47d 100644 --- a/cups/testhttp.c +++ b/cups/testhttp.c @@ -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... */