2012-04-05 08:31:15 -07:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
# include "config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <stdio.h>
|
|
|
|
|
|
|
|
#include "eobj_suite.h"
|
2012-04-10 02:12:46 -07:00
|
|
|
#include "Eobj.h"
|
2012-04-05 08:31:15 -07:00
|
|
|
|
|
|
|
START_TEST(eobj_simple)
|
|
|
|
{
|
|
|
|
fail_if(!eobj_init()); /* one init by test suite */
|
2012-04-12 04:20:19 -07:00
|
|
|
fail_if(eobj_init() != 1);
|
|
|
|
fail_if(eobj_shutdown() != 1);
|
2012-04-05 08:31:15 -07:00
|
|
|
fail_if(!eobj_shutdown());
|
|
|
|
}
|
|
|
|
END_TEST
|
|
|
|
|
|
|
|
void eobj_test_init(TCase *tc)
|
|
|
|
{
|
|
|
|
tcase_add_test(tc, eobj_simple);
|
|
|
|
}
|