mmdevapi/tests: Only warn about the console when it is used.

Signed-off-by: Francois Gouget <fgouget@codeweavers.com>
Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Francois Gouget 2020-11-09 17:39:49 +01:00 committed by Alexandre Julliard
parent fa6d22b976
commit 8f956d4f3a
1 changed files with 6 additions and 2 deletions

View File

@ -2346,6 +2346,7 @@ static void test_endpointvolume(void)
START_TEST(render)
{
HRESULT hr;
DWORD mode;
CoInitializeEx(NULL, COINIT_MULTITHREADED);
hr = CoCreateInstance(&CLSID_MMDeviceEnumerator, NULL, CLSCTX_INPROC_SERVER, &IID_IMMDeviceEnumerator, (void**)&mme);
@ -2371,8 +2372,11 @@ START_TEST(render)
test_formats(AUDCLNT_SHAREMODE_SHARED);
test_references();
test_marshal();
trace("Output to a MS-DOS console is particularly slow and disturbs timing.\n");
trace("Please redirect output to a file.\n");
if (GetConsoleMode(GetStdHandle(STD_OUTPUT_HANDLE), &mode))
{
trace("Output to a MS-DOS console is particularly slow and disturbs timing.\n");
trace("Please redirect output to a file.\n");
}
test_event();
test_padding();
test_clock(1);