diff options
author | Jannis Pohlmann <jannis@xfce.org> | 2010-08-28 14:39:57 +0200 |
---|---|---|
committer | Jannis Pohlmann <jannis@xfce.org> | 2010-08-28 14:39:57 +0200 |
commit | 7d42e955c11060646e17d3e1f67a601ba3d6a503 (patch) | |
tree | c4236605b74e30ea2435031b55ca2deae7b24da2 | |
parent | 6a6bd13d62e272f026bbaccef3f0d6efa172b728 (diff) | |
download | garcon-7d42e955c11060646e17d3e1f67a601ba3d6a503.tar.gz |
Make it easier to debug garcon with the test application.
-rw-r--r-- | tests/gdb-test-display-menu | 3 | ||||
-rwxr-xr-x | tests/run-test-display-menu.sh | 8 |
2 files changed, 11 insertions, 0 deletions
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 |