summaryrefslogtreecommitdiff
path: root/tests/dirname-test.c
diff options
context:
space:
mode:
authorDarin Adler <darin@src.gnome.org>2001-07-19 20:07:41 +0000
committerDarin Adler <darin@src.gnome.org>2001-07-19 20:07:41 +0000
commit3fa620d4dfeb3440526682b4970bc9147b6665c9 (patch)
treee59b66c6d63436537d4b1c589c6769f4e80d9196 /tests/dirname-test.c
parentf9a6307e063e1d573ff851f850470d82b385685d (diff)
Add missing const. (g_strsplit): Add g_return_val_if_fail for case of
* glib/gstrfuncs.c: (g_ascii_strdown), (g_ascii_strup): Add missing const. (g_strsplit): Add g_return_val_if_fail for case of empty delimiter, which can result in an infinite loop otherwise. * glib/gstrfuncs.h: Add missing const. * tests/.cvsignore: Ignore a generated file. * tests/array-test.c: * tests/dirname-test.c: * tests/hash-test.c: * tests/list-test.c: * tests/node-test.c: * tests/relation-test.c: * tests/shell-test.c: * tests/slist-test.c: * tests/spawn-test.c: * tests/strfunc-test.c: * tests/string-test.c: * tests/testglib.c: * tests/tree-test.c: * tests/type-test.c: Add an #undef G_DISABLE_ASSERT so all tests will assert even if asserts are disabled inside glib itself.
Diffstat (limited to 'tests/dirname-test.c')
-rw-r--r--tests/dirname-test.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/dirname-test.c b/tests/dirname-test.c
index 3fb54b2f9..7e7d33e64 100644
--- a/tests/dirname-test.c
+++ b/tests/dirname-test.c
@@ -24,6 +24,7 @@
* GLib at ftp://ftp.gtk.org/pub/gtk/.
*/
+#undef G_DISABLE_ASSERT
#undef G_LOG_DOMAIN
#include <stdio.h>