24 lines
464 B
C
24 lines
464 B
C
|
/*
|
||
|
* Copyright 2016 (c) Anna Schumaker.
|
||
|
*/
|
||
|
#include <gui/builder.h>
|
||
|
#include <tests/test.h>
|
||
|
|
||
|
static void test_builder()
|
||
|
{
|
||
|
int argc = 0;
|
||
|
|
||
|
test_equal((void *)test_get_gui_builder(), NULL);
|
||
|
|
||
|
gtk_init(&argc, NULL);
|
||
|
gui_builder_init("share/ocarina/ocarina6.glade");
|
||
|
test_not_equal((void *)test_get_gui_builder(), NULL);
|
||
|
|
||
|
gui_builder_deinit();
|
||
|
test_equal((void *)test_get_gui_builder(), NULL);
|
||
|
}
|
||
|
|
||
|
DECLARE_UNIT_TESTS(
|
||
|
UNIT_TEST("GTK Builder", test_builder),
|
||
|
);
|