add a trivial test application for libstb-hal

This commit is contained in:
Stefan Seyfried
2012-02-05 19:24:33 +01:00
parent 8ae65760bc
commit 2e80e46c7b
2 changed files with 31 additions and 0 deletions

25
libtest.cpp Normal file
View File

@@ -0,0 +1,25 @@
/* minimal test program for libstb-hal
* (C) 2012 Stefan Seyfried
* License: GPL v2 or later
*
* this does just test the input converter thread for now...
*/
#include <config.h>
#include <unistd.h>
#include <include/init_td.h>
int main(int argc, char ** argv)
{
init_td_api();
while (1) {
sleep(1);
if (! access("/tmp/endtest", R_OK))
{
unlink("/tmp/endtest");
break;
}
};
shutdown_td_api();
return 0;
}