From 71f294cef9c3bcdacb093984bccca1c016527c7e Mon Sep 17 00:00:00 2001 From: msweet Date: Tue, 25 Jun 2013 00:57:09 +0000 Subject: [PATCH] Add unit test for httpAssembleUUID. git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@11051 a1ca3aef-8c08-0410-bb20-df032aa958be --- cups/testhttp.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) 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... */ -- 2.47.2