Added g_strdup_printf check

This commit is contained in:
Jeff Garzik 1999-01-02 21:45:39 +00:00
parent bbbfe78d70
commit ab114d33f7
10 changed files with 48 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Sat Jan 2 16:45:44 EST 1999 Jeff Garzik <jgarzik@pobox.com>
* testglib.c: Added g_strdup_printf check.
Fri Jan 1 21:58:40 EST 1999 Jeff Garzik <jgarzik@pobox.com> Fri Jan 1 21:58:40 EST 1999 Jeff Garzik <jgarzik@pobox.com>
* glib.h: * glib.h:

View File

@ -1,3 +1,7 @@
Sat Jan 2 16:45:44 EST 1999 Jeff Garzik <jgarzik@pobox.com>
* testglib.c: Added g_strdup_printf check.
Fri Jan 1 21:58:40 EST 1999 Jeff Garzik <jgarzik@pobox.com> Fri Jan 1 21:58:40 EST 1999 Jeff Garzik <jgarzik@pobox.com>
* glib.h: * glib.h:

View File

@ -1,3 +1,7 @@
Sat Jan 2 16:45:44 EST 1999 Jeff Garzik <jgarzik@pobox.com>
* testglib.c: Added g_strdup_printf check.
Fri Jan 1 21:58:40 EST 1999 Jeff Garzik <jgarzik@pobox.com> Fri Jan 1 21:58:40 EST 1999 Jeff Garzik <jgarzik@pobox.com>
* glib.h: * glib.h:

View File

@ -1,3 +1,7 @@
Sat Jan 2 16:45:44 EST 1999 Jeff Garzik <jgarzik@pobox.com>
* testglib.c: Added g_strdup_printf check.
Fri Jan 1 21:58:40 EST 1999 Jeff Garzik <jgarzik@pobox.com> Fri Jan 1 21:58:40 EST 1999 Jeff Garzik <jgarzik@pobox.com>
* glib.h: * glib.h:

View File

@ -1,3 +1,7 @@
Sat Jan 2 16:45:44 EST 1999 Jeff Garzik <jgarzik@pobox.com>
* testglib.c: Added g_strdup_printf check.
Fri Jan 1 21:58:40 EST 1999 Jeff Garzik <jgarzik@pobox.com> Fri Jan 1 21:58:40 EST 1999 Jeff Garzik <jgarzik@pobox.com>
* glib.h: * glib.h:

View File

@ -1,3 +1,7 @@
Sat Jan 2 16:45:44 EST 1999 Jeff Garzik <jgarzik@pobox.com>
* testglib.c: Added g_strdup_printf check.
Fri Jan 1 21:58:40 EST 1999 Jeff Garzik <jgarzik@pobox.com> Fri Jan 1 21:58:40 EST 1999 Jeff Garzik <jgarzik@pobox.com>
* glib.h: * glib.h:

View File

@ -1,3 +1,7 @@
Sat Jan 2 16:45:44 EST 1999 Jeff Garzik <jgarzik@pobox.com>
* testglib.c: Added g_strdup_printf check.
Fri Jan 1 21:58:40 EST 1999 Jeff Garzik <jgarzik@pobox.com> Fri Jan 1 21:58:40 EST 1999 Jeff Garzik <jgarzik@pobox.com>
* glib.h: * glib.h:

View File

@ -1,3 +1,7 @@
Sat Jan 2 16:45:44 EST 1999 Jeff Garzik <jgarzik@pobox.com>
* testglib.c: Added g_strdup_printf check.
Fri Jan 1 21:58:40 EST 1999 Jeff Garzik <jgarzik@pobox.com> Fri Jan 1 21:58:40 EST 1999 Jeff Garzik <jgarzik@pobox.com>
* glib.h: * glib.h:

View File

@ -771,6 +771,14 @@ main (int argc,
g_print ("ok\n"); g_print ("ok\n");
g_print ("checking g_strdup_printf...");
string = g_strdup_printf ("%05d %-5s", 21, "test");
g_assert (string != NULL);
g_assert (strcmp(string, "00021 test ") == 0);
g_free (string);
g_print ("ok\n");
/* g_debug (argv[0]); */ /* g_debug (argv[0]); */
/* Relation tests */ /* Relation tests */

View File

@ -771,6 +771,14 @@ main (int argc,
g_print ("ok\n"); g_print ("ok\n");
g_print ("checking g_strdup_printf...");
string = g_strdup_printf ("%05d %-5s", 21, "test");
g_assert (string != NULL);
g_assert (strcmp(string, "00021 test ") == 0);
g_free (string);
g_print ("ok\n");
/* g_debug (argv[0]); */ /* g_debug (argv[0]); */
/* Relation tests */ /* Relation tests */