[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pdf-devel] New developer and UUID module request
From: |
Jose E. Marchesi |
Subject: |
Re: [pdf-devel] New developer and UUID module request |
Date: |
Fri, 22 Apr 2011 12:47:25 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) |
Hi Albert.
+/*
+ * Test: pdf_uuid_generate_002
+ * Description:
+ * Generate a UUID of a non supported type.
+ * Success conditions:
+ * Generated UUID should be ok.
+ */
+START_TEST (pdf_uuid_generate_002)
+{
+
+ pdf_uuid_t uuid_unknown;
+
+ /* Create a UUID from an unkown type */
+ uuid_unknown = pdf_uuid_generate (1111111222222222333333333);
+ fail_if(uuid_unknown.uuid == NULL);
+
+}
+END_TEST
What kind of UUID is the library generating in that case? It is not
documented in the reference manual. I would expect the call to return
an error.
+/*
+ * Test: pdf_uuid_string_003
+ * Description:
+ * Generate an UUID ascii representation, buffer size less than
+ * required.
+ * **FAIL** conditions: The buffer to store the UUID string is too
+ * short. The ascii generation should fail.
+ */
I don't think that build-aux/generate-tsd.pl.in will be happy with that
**FAIL** conditions entry.
--
Jose E. Marchesi address@hidden
GNU Project http://www.gnu.org