[gxml] test/valgrind: add message.c to just test the allocations by g_message
- From: Richard Hans Schwarting <rschwart src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gxml] test/valgrind: add message.c to just test the allocations by g_message
- Date: Fri, 23 Aug 2013 21:01:07 +0000 (UTC)
commit 6a5c35a0330f6e2d96bab88469666f95c0ea3b1b
Author: Richard Schwarting <aquarichy gmail com>
Date: Sun Jul 28 01:30:12 2013 -0400
test/valgrind: add message.c to just test the allocations by g_message
test/valgrind/Makefile | 4 ++--
test/valgrind/message.c | 7 +++++++
2 files changed, 9 insertions(+), 2 deletions(-)
---
diff --git a/test/valgrind/Makefile b/test/valgrind/Makefile
index 27faafe..e80a7ca 100644
--- a/test/valgrind/Makefile
+++ b/test/valgrind/Makefile
@@ -2,7 +2,7 @@ VALAC=valac
VALAFLAGS=-g --save-temps --vapidir=../../gxml --pkg gxml
CC=gcc
CFLAGS=-g `pkg-config --cflags --libs glib-2.0 gobject-2.0 gxml gio-2.0`
-C_PROGS=unlink_unattached_nodes small2a small2b gfile gobject document document_create_minimal libxml2
document_create_minimal_2
+C_PROGS=unlink_unattached_nodes small2a small2b gfile gobject document document_create_minimal libxml2
document_create_minimal_2 message
all: $(C_PROGS) example attributes small small2 scope supp
@@ -32,7 +32,7 @@ runnew:
supp: *.supp
cat *.supp > ../../gxml.supp
-run:
+run: all
G_SLICE=always-malloc valgrind --leak-check=full --show-reachable=yes --suppressions=libxml2.supp
--suppressions=gio.supp --suppressions=gtype.supp --suppressions=glib.supp --num-callers=40
./document_create_minimal_2
run_nosupp:
diff --git a/test/valgrind/message.c b/test/valgrind/message.c
new file mode 100644
index 0000000..492c31b
--- /dev/null
+++ b/test/valgrind/message.c
@@ -0,0 +1,7 @@
+#include <glib.h>
+
+int main () {
+ g_message ("Hello");
+
+ return 0;
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]