On 3/31/22 18:17, Bernhard Kölbl wrote:
hr = RoInitialize(RO_INIT_MULTITHREADED); @@ -848,6 +937,78 @@ static void test_SpeechRecognizer(void) ref = IVector_ISpeechRecognitionConstraint_Release(constraints); ok(ref == 1, "Got unexpected ref %lu.\n", ref);
+ compilation_handler_create_static(&compilation_handler); + compilation_handler.event_finished = CreateEventW(NULL, FALSE, FALSE, NULL); + compilation_handler.thread_id = GetCurrentThreadId(); + + if (!compilation_handler.event_finished) goto skip_compile; +
I don't think this will ever fail. You can probably instead add an ok to check the event, and ignore failures. If it fails and times-out the test message will be enough to tell. -- Rémi Bernon <rbernon(a)codeweavers.com>