diff options
Diffstat (limited to 'TC/testcase/utc_fc_query.c')
-rwxr-xr-x | TC/testcase/utc_fc_query.c | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/TC/testcase/utc_fc_query.c b/TC/testcase/utc_fc_query.c new file mode 100755 index 0000000..d47c0b1 --- /dev/null +++ b/TC/testcase/utc_fc_query.c @@ -0,0 +1,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"); +} |