2019-04-10 13:42:17 -05:00
|
|
|
// 10 april 2019
|
|
|
|
#include "../ui.h"
|
|
|
|
#include "testing.h"
|
|
|
|
|
2019-04-10 19:17:40 -05:00
|
|
|
testingTestBefore(Init)
|
2019-04-10 13:42:17 -05:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2019-04-10 19:17:40 -05:00
|
|
|
testingTestAfter(Uninit)
|
2019-04-10 13:42:17 -05:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
static void queued(void *data)
|
|
|
|
{
|
|
|
|
int *flag = (int *) data;
|
|
|
|
|
|
|
|
*flag = 1;
|
|
|
|
}
|
|
|
|
|
2019-04-10 19:11:44 -05:00
|
|
|
static void timer(void *data)
|
2019-04-10 13:42:17 -05:00
|
|
|
{
|
|
|
|
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 13:42:17 -05:00
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2019-04-10 19:11:44 -05:00
|
|
|
// TODO testingTest(QueueMain_DifferentThread)
|
2019-04-10 13:42:17 -05:00
|
|
|
|
2019-04-10 19:11:44 -05:00
|
|
|
testingTest(Timer)
|
2019-04-10 13:42:17 -05:00
|
|
|
{
|
|
|
|
}
|