From 7d42e955c11060646e17d3e1f67a601ba3d6a503 Mon Sep 17 00:00:00 2001 From: Jannis Pohlmann Date: Sat, 28 Aug 2010 14:39:57 +0200 Subject: Make it easier to debug garcon with the test application. --- tests/gdb-test-display-menu | 3 +++ tests/run-test-display-menu.sh | 8 ++++++++ 2 files changed, 11 insertions(+) create mode 100644 tests/gdb-test-display-menu create mode 100755 tests/run-test-display-menu.sh diff --git a/tests/gdb-test-display-menu b/tests/gdb-test-display-menu new file mode 100644 index 0000000..545a1aa --- /dev/null +++ b/tests/gdb-test-display-menu @@ -0,0 +1,3 @@ +run /usr/local/etc/xdg/menus/xfce-applications.menu +bt +quit diff --git a/tests/run-test-display-menu.sh b/tests/run-test-display-menu.sh new file mode 100755 index 0000000..79d10ad --- /dev/null +++ b/tests/run-test-display-menu.sh @@ -0,0 +1,8 @@ +#!/bin/sh + +GLIB_OPTIONS=`pkg-config --cflags --libs glib-2.0` +GTK_OPTIONS=`pkg-config --cflags --libs gtk+-2.0` +GARCON_OPTIONS=`pkg-config --cflags --libs garcon-1` + +gcc -o test-display-menu test-display-menu.c $GLIB_OPTIONS $GTK_OPTIONS $GARCON_OPTIONS && +G_DEBUG=fatal-criticals gdb ./test-display-menu -x gdb-test-display-menu -- cgit v1.2.1