summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2015-02-20 16:01:25 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2015-02-24 11:14:02 +0000
commite554e1b4ba03db225d0195f8c5ed994c26efc36e (patch)
tree0ba5b82297483d2c4666df50060b04f338b49675 /test
parent2ca78f51a920562091294fd439655f205e7397a4 (diff)
downloaddbus-e554e1b4ba03db225d0195f8c5ed994c26efc36e.tar.gz
tests: reassure clang that oom() does in fact not return
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=89243 Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
Diffstat (limited to 'test')
-rw-r--r--test/fdpass.c2
-rw-r--r--test/manual-authz.c2
2 files changed, 4 insertions, 0 deletions
diff --git a/test/fdpass.c b/test/fdpass.c
index 96f9427f..65ade4c1 100644
--- a/test/fdpass.c
+++ b/test/fdpass.c
@@ -31,6 +31,7 @@
#include <glib.h>
+#include <stdlib.h>
#include <string.h>
#ifdef G_OS_UNIX
@@ -108,6 +109,7 @@ static void
oom (const gchar *doing)
{
g_error ("out of memory (%s)", doing);
+ abort ();
}
static void
diff --git a/test/manual-authz.c b/test/manual-authz.c
index f9e3688e..ee9bc52f 100644
--- a/test/manual-authz.c
+++ b/test/manual-authz.c
@@ -30,6 +30,7 @@
#include <dbus/dbus.h>
+#include <stdlib.h>
#ifdef G_OS_UNIX
#include <unistd.h>
#include <sys/types.h>
@@ -57,6 +58,7 @@ static void
oom (void)
{
g_error ("out of memory");
+ abort ();
}
static void