summaryrefslogtreecommitdiff
path: root/testglib.c
diff options
context:
space:
mode:
authorManish Singh <yosh@src.gnome.org>1999-01-02 02:40:39 +0000
committerManish Singh <yosh@src.gnome.org>1999-01-02 02:40:39 +0000
commit3de4d2b78162c7611d7e4823436d240e9d518cbe (patch)
tree557184a471ecc4a37c7159d8eebd06605301ee41 /testglib.c
parent58aaa9d32bd86132afb0a9eedd69f8b0299d556b (diff)
downloadglib-3de4d2b78162c7611d7e4823436d240e9d518cbe.tar.gz
made the alloca tests follow the testglib style
* testglib.c: made the alloca tests follow the testglib style * Makefile.am: minor cleanups, mostly cosmetic -Yosh
Diffstat (limited to 'testglib.c')
-rw-r--r--testglib.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/testglib.c b/testglib.c
index 3eb25133a..852d5582a 100644
--- a/testglib.c
+++ b/testglib.c
@@ -860,20 +860,22 @@ main (int argc,
string = NULL;
g_print (string);
- g_print ("endian macro tests...");
+ g_print ("checking endian macros (host is ");
#if G_BYTE_ORDER == G_BIG_ENDIAN
- g_print ("big endian...\n");
+ g_print ("big endian)...");
#else
- g_print ("little endian...\n");
+ g_print ("little endian)...");
#endif
g_assert (GUINT16_SWAP_LE_BE (gu16t1) == gu16t2);
g_assert (GUINT32_SWAP_LE_BE (gu32t1) == gu32t2);
#ifdef G_HAVE_GINT64
g_assert (GUINT64_SWAP_LE_BE (gu64t1) == gu64t2);
#endif
+ g_print ("ok\n");
#ifdef G_HAVE_ALLOCA
- /* test alloca()-based string duplication routines */
+ g_print ("checking alloca()-based string duplication routines...");
+
g_strdup_a(string, GLIB_TEST_STRING);
g_assert(string != NULL);
g_assert(strcmp(string, GLIB_TEST_STRING) == 0);
@@ -887,9 +889,9 @@ main (int argc,
g_assert(string != NULL);
g_assert(strcmp(string, GLIB_TEST_STRING GLIB_TEST_STRING
GLIB_TEST_STRING) == 0);
-#endif
g_print ("ok\n");
+#endif
return 0;
}