summaryrefslogtreecommitdiff
path: root/TC/testcase/utc_fc_query.c
blob: d47c0b11e04cf1396aa5ca3dd0054b8c26e1fb82 (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
#include <tet_api.h>

static void startup(void);
static void cleanup(void);

void (*tet_startup)(void) = startup;
void (*tet_cleanup)(void) = cleanup;

static void utc_fc_query(void);

struct tet_testlist tet_testlist[] = {
	{ utc_fc_query, 1 },
	{ NULL, 0 },
};

static void startup(void)
{
	/* start of TC */
}

static void cleanup(void)
{
	/* end of TC */
}

static void utc_fc_query(void)
{
	int ret;
	ret = system("fc-query /usr/share/fonts/HelveticaNeueRegular.ttf");
	if(WEXITSTATUS(ret) == 0)
		dts_pass("utc_fc_query");
	else
		dts_fail("utc_fc_query");
}