projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
07fadc7
)
g_test_expect_message: add some g_return_if_fail
author
Ryan Lortie
<desrt@desrt.ca>
Mon, 20 Aug 2012 20:25:09 +0000
(16:25 -0400)
committer
Ryan Lortie
<desrt@desrt.ca>
Mon, 20 Aug 2012 20:26:25 +0000
(16:26 -0400)
NULL domain is not supported and some might expect this to work, so make
sure they don't get the wrong idea...
glib/gmessages.c
patch
|
blob
|
history
diff --git
a/glib/gmessages.c
b/glib/gmessages.c
index
c83d3e8
..
decda04
100644
(file)
--- a/
glib/gmessages.c
+++ b/
glib/gmessages.c
@@
-1101,6
+1101,10
@@
g_test_expect_message (const gchar *log_domain,
{
GTestExpectedMessage *expected;
+ g_return_if_fail (log_domain != NULL);
+ g_return_if_fail (log_level != 0);
+ g_return_if_fail (pattern != NULL);
+
expected = g_new (GTestExpectedMessage, 1);
expected->log_domain = g_strdup (log_domain);
expected->log_level = log_level;