2011-03-31 12:38:40 +02:00
|
|
|
#include <stdio.h>
|
2014-10-14 00:24:47 +02:00
|
|
|
#include "../termo.h"
|
2011-03-31 13:11:19 +02:00
|
|
|
#include "taplib.h"
|
2011-03-31 12:38:40 +02:00
|
|
|
|
2014-09-28 05:56:13 +02:00
|
|
|
int
|
|
|
|
main (int argc, char *argv[])
|
2011-03-31 12:38:40 +02:00
|
|
|
{
|
2014-10-14 00:24:47 +02:00
|
|
|
termo_t *tk;
|
2011-03-31 12:38:40 +02:00
|
|
|
|
2014-09-28 05:56:13 +02:00
|
|
|
plan_tests (6);
|
2011-03-31 12:38:40 +02:00
|
|
|
|
2014-10-14 00:24:47 +02:00
|
|
|
tk = termo_new_abstract ("vt100", NULL, 0);
|
|
|
|
ok (!!tk, "termo_new_abstract");
|
|
|
|
is_int (termo_get_buffer_size (tk), 256, "termo_get_buffer_size");
|
|
|
|
ok (termo_is_started (tk), "termo_is_started true after construction");
|
2011-03-31 12:38:40 +02:00
|
|
|
|
2014-10-14 00:24:47 +02:00
|
|
|
termo_stop (tk);
|
|
|
|
ok (!termo_is_started (tk),
|
|
|
|
"termo_is_started false after termo_stop()");
|
2011-03-31 12:38:40 +02:00
|
|
|
|
2014-10-14 00:24:47 +02:00
|
|
|
termo_start (tk);
|
|
|
|
ok (termo_is_started (tk),
|
|
|
|
"termo_is_started true after termo_start()");
|
2012-03-08 22:24:39 +01:00
|
|
|
|
2014-10-14 00:24:47 +02:00
|
|
|
termo_destroy (tk);
|
2012-03-08 22:24:39 +01:00
|
|
|
|
2014-10-14 00:24:47 +02:00
|
|
|
ok (1, "termo_free");
|
2014-09-28 05:56:13 +02:00
|
|
|
return exit_status ();
|
2011-03-31 12:38:40 +02:00
|
|
|
}
|