]> git.ipfire.org Git - thirdparty/dbus.git/commitdiff
tests: reassure clang that oom() does in fact not return
authorSimon McVittie <simon.mcvittie@collabora.co.uk>
Fri, 20 Feb 2015 16:01:25 +0000 (16:01 +0000)
committerSimon McVittie <simon.mcvittie@collabora.co.uk>
Tue, 24 Feb 2015 11:14:02 +0000 (11:14 +0000)
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=89243
Reviewed-by: Ralf Habacker <ralf.habacker@freenet.de>
test/fdpass.c
test/manual-authz.c

index 96f9427f928d078af97289963757697f9390bb38..65ade4c114b7e0aa71191d0ba6eec90f202c0a3e 100644 (file)
@@ -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
index f9e3688e1218b31d0c08ab523b9a7ae59d31a61d..ee9bc52f947b895bdcac142a9b9cf4bdc97b2b73 100644 (file)
@@ -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