blob: 3368c9e4101047f3a87e0249a76e0a5097ec89ca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#include <gtk/gtk.h>
#include "libindicator/indicator-desktop-shortcuts.h"
void
test_desktop_shortcuts_creation (void)
{
IndicatorDesktopShortcuts * ids = indicator_desktop_shortcuts_new(SRCDIR "/test-well-formed.desktop", "France");
g_assert(ids != NULL);
g_object_add_weak_pointer(G_OBJECT(ids), (gpointer *)&ids);
g_object_unref(G_OBJECT(ids));
g_assert(ids == NULL);
return;
}
void
test_desktop_shortcuts_suite (void)
{
g_test_add_func ("/libindicator/desktopshortcuts/creation", test_desktop_shortcuts_creation);
return;
}
int
main (int argc, char ** argv)
{
g_type_init ();
g_test_init (&argc, &argv, NULL);
gtk_init(&argc, &argv);
test_desktop_shortcuts_suite();
g_log_set_always_fatal(G_LOG_LEVEL_CRITICAL);
return g_test_run();
}
|