libui/test/initmain.c

37 lines
410 B
C
Raw Normal View History

// 10 april 2019
#include "../ui.h"
#include "testing.h"
testingTestBefore(Init)
{
}
testingTestAfter(Uninit)
{
}
static void queued(void *data)
{
int *flag = (int *) data;
*flag = 1;
}
2019-04-10 19:11:44 -05:00
static void timer(void *data)
{
int *n = (int *) data;
// TODO return stop if n == 5, continue otherwise
*n++;
}
2019-04-10 19:11:44 -05:00
testingTest(QueueMain)
{
}
2019-04-10 19:11:44 -05:00
// TODO testingTest(QueueMain_DifferentThread)
2019-04-10 19:11:44 -05:00
testingTest(Timer)
{
}