efl/src/tests/elua/elua_lib.c

30 lines
392 B
C
Raw Normal View History

2015-04-16 02:55:27 -07:00
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <stdlib.h>
#include <stdio.h>
#include<Eina.h>
#include "Elua.h"
#include "elua_suite.h"
START_TEST(elua_api)
2015-04-16 02:55:27 -07:00
{
fail_if(!elua_init());
Elua_State *st = elua_state_new("test");
fail_if(!st);
elua_state_free(st);
elua_shutdown();
2015-04-16 02:55:27 -07:00
}
END_TEST
2015-04-16 02:55:27 -07:00
void elua_lib_test(TCase *tc)
{
tcase_add_test(tc, elua_api);
2015-04-16 02:55:27 -07:00
}