2020-01-21 14:31:41 -06:00
|
|
|
// 28 may 2019
|
|
|
|
#include "test.h"
|
2020-05-10 13:57:03 -05:00
|
|
|
#include "thread.h"
|
2020-01-21 14:31:41 -06:00
|
|
|
|
2020-05-30 20:24:58 -05:00
|
|
|
#define allcallsHeader "allcalls.h"
|
|
|
|
#include "noinitwrongthreadimpl.h"
|
2020-01-21 14:31:41 -06:00
|
|
|
|
2020-05-10 13:49:11 -05:00
|
|
|
TestNoInit(CallBeforeInitIsProgrammerError_uiQueueMain)
|
2020-01-21 14:31:41 -06:00
|
|
|
{
|
2020-05-10 13:49:11 -05:00
|
|
|
void *ctx;
|
|
|
|
|
2020-05-10 13:57:03 -05:00
|
|
|
ctx = beginCheckProgrammerError("attempt to call uiQueueMain() before uiInit()");
|
2020-05-10 13:49:11 -05:00
|
|
|
uiQueueMain(NULL, NULL);
|
|
|
|
endCheckProgrammerError(ctx);
|
2020-01-21 14:31:41 -06:00
|
|
|
}
|
|
|
|
|
2020-05-10 13:49:11 -05:00
|
|
|
// no uiQueueMain() test for the wrong thread; it's supposed to be callable from any thread
|